Skip to content

Commit

Permalink
Merge pull request #1349 from plone/tinymce-i18n-version6
Browse files Browse the repository at this point in the history
fix path to TinyMCE v6 translations
  • Loading branch information
petschki authored Oct 24, 2023
2 parents c211f8c + 61adac7 commit 2a1270f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pat/tinymce/tinymce--implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class TinyMCE {
var lang = i18n.currentLanguage;
if (lang !== "en" && self.options.tiny.language !== "en") {
try {
await import(`tinymce-i18n/langs5/${lang}`);
await import(`tinymce-i18n/langs6/${lang}`);
} catch (e) {
log.debug("Could not load TinyMCE language: ", lang);
try {
Expand All @@ -128,7 +128,7 @@ export default class TinyMCE {
lang = lang + "_" + lang.toUpperCase();
}
log.debug("Trying with: ", lang);
await import(`tinymce-i18n/langs5/${lang}`);
await import(`tinymce-i18n/langs6/${lang}`);
self.options.tiny.language = lang;
} catch (e) {
log.debug("Could not load TinyMCE language. Fallback to English");
Expand Down

0 comments on commit 2a1270f

Please sign in to comment.