CKEditor implicitly detects an available translation, but only if it is defined first. Explicitly setting the language avoids any race conditions that could take place.
}
toConfig(): EditorConfig {
+ const language = Object.keys(window.CKEDITOR_TRANSLATIONS).find((language) => language !== "en");
+
// TODO: The typings are both incompleted and outdated.
return {
+ language,
removePlugins: this.#removePlugins,
toolbar: this.#getToolbar(),
woltlabToolbarGroup: this.#toolbarGroups,
this.#setupMention();
}
toConfig() {
+ const language = Object.keys(window.CKEDITOR_TRANSLATIONS).find((language) => language !== "en");
// TODO: The typings are both incompleted and outdated.
return {
+ language,
removePlugins: this.#removePlugins,
toolbar: this.#getToolbar(),
woltlabToolbarGroup: this.#toolbarGroups,