Skip to content

Commit 351e084

Browse files
committed
Fixed translation of our placeholder ckeditor plugin by keeping existing translations on localization
1 parent bba6fff commit 351e084

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
@@ -87,7 +87,8 @@ export default class extends Controller {
8787
//Load translations if not english
8888
let translations = loadTranslation(language);
8989
if (translations) {
90-
config.translations = [translations];
90+
//Keep existing translations (e.g. from other plugins), if any
91+
config.translations = [window.CKEDITOR_TRANSLATIONS, translations];
9192
}
9293

9394
const watchdog = new EditorWatchdog();

0 commit comments

Comments
 (0)