Ckeditor missing locale in Content Stuido


#1

Enonic version: 7.0.1
OS: Linux

Hi!

When entering Ckeditor in Content Studio I get the following error in js:

GET http://site.local/admin/tool/com.enonic.app.contentstudio/main/_/asset/com.enonic.app.contentstudio:1560929893/lib/ckeditor/lang/uk.js?t=IA8F net::ERR_ABORTED 404 (Not Found)

_all.js:1 Uncaught TypeError: Cannot set property 'dir' of undefined
    at Object.t (_all.js:1)
    at d (_all.js:1)
    at Array.u (_all.js:1)
    at h (_all.js:1)
    at HTMLScriptElement.CKEDITOR.env.ie.a.$.onerror (_all.js:1)
t @ _all.js:1
d @ _all.js:1
u @ _all.js:1
h @ _all.js:1
CKEDITOR.env.ie.a.$.onerror @ _all.js:1
error (async)
f @ _all.js:1
load @ _all.js:1
load @ _all.js:1
q @ _all.js:1
(anonymous) @ _all.js:1
b @ _all.js:1
loadPart @ _all.js:1
p @ _all.js:1
(anonymous) @ _all.js:1
p @ _all.js:1
(anonymous) @ _all.js:1
window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire @ _all.js:1
fireOnce @ _all.js:1
window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fireOnce @ _all.js:1
k @ _all.js:1
(anonymous) @ _all.js:1
callback @ _all.js:1
d @ _all.js:1
u @ _all.js:1
h @ _all.js:1
(anonymous) @ _all.js:1
setTimeout (async)
CKEDITOR.env.ie.a.$.onload @ _all.js:1
load (async)
f @ _all.js:1
load @ _all.js:1
a @ _all.js:1
(anonymous) @ _all.js:1
k @ _all.js:1
h @ _all.js:1
(anonymous) @ _all.js:1
(anonymous) @ _all.js:1
setTimeout (async)
setTimeout @ _all.js:1
a @ _all.js:1
a @ _all.js:1
CKEDITOR.replace @ _all.js:1
HtmlEditor.createEditor @ bundle.js:1
HtmlEditor @ bundle.js:1
(anonymous) @ bundle.js:1
_fulfilled @ _all.js:19739
(anonymous) @ _all.js:19768
Promise.promise.promiseDispatch @ _all.js:19701
(anonymous) @ _all.js:19509
flush @ _all.js:19060

Getting the file with “en” locale in url returned js file.
Switching browser locale solved the issue.

Thanks!


#2

Same here, tested on 7.0.2-RC1 with language in Chrome v74 set to Norwegian (bokmål) - resulting in CKeditor looking for ‘nb.js’

Switching to plain English (en) in the browser works.


#3

We have registered a bug for this: https://github.com/enonic/app-contentstudio/issues/552

In case of Ukranian locale it will fall back to English locale, since Ukranian is not supported in our admin UI.

In case of Bokmål locale it will use Norwegian as it should.