Only include the ckeditor translations we really need

This commit is contained in:
Jan Böhmer 2025-10-18 01:07:56 +02:00
parent a8e92b5f46
commit bba6fff4a5

View file

@ -31,7 +31,8 @@ import "../../css/components/ckeditor.css";
const translationContext = require.context( const translationContext = require.context(
'ckeditor5/translations', 'ckeditor5/translations',
false, false,
/\.js$/ //Only load the translation files we will really need
/(de|it|fr|ru|ja|cs|da|zh|pl|hu)\.js$/
); );
function loadTranslation(language) { function loadTranslation(language) {