Skip to content

Commit bba6fff

Browse files
committed
Only include the ckeditor translations we really need
1 parent a8e92b5 commit bba6fff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/controllers/elements/ckeditor_controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import "../../css/components/ckeditor.css";
3131
const translationContext = require.context(
3232
'ckeditor5/translations',
3333
false,
34-
/\.js$/
34+
//Only load the translation files we will really need
35+
/(de|it|fr|ru|ja|cs|da|zh|pl|hu)\.js$/
3536
);
3637

3738
function loadTranslation(language) {

0 commit comments

Comments
 (0)