Skip to content

Commit 835db36

Browse files
thetpetschki
authored andcommitted
fix(pat-tinymce): Ingore english language variant translations.
For english translations, ignore country specific language varants. This fixes a probem which occured with a language variant as portal language. TODO: verify! but I can't remember anymore.
1 parent 1e0aaba commit 835db36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/tinymce/tinymce--implementation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export default class TinyMCE {
303303
lang = lang.split("-")[0] + "_" + lang.split("-")[1].toUpperCase();
304304
}
305305

306-
if (lang !== "en") {
306+
if (lang.substr(0,2) !== "en") {
307307
// load translations from tinymce-i18n
308308
try {
309309
await import(`tinymce-i18n/langs7/${lang}`);

0 commit comments

Comments
 (0)