Fix tests
We do not have a en.json but a en_EN.json
This commit is contained in:
parent
c5921c4c28
commit
cbf967a86d
1 changed files with 3 additions and 3 deletions
|
@ -141,11 +141,11 @@ export function setLanguage(preferredLangs) {
|
|||
console.log("set language to " + langToUse);
|
||||
|
||||
// Set 'en' as fallback language:
|
||||
if (langToUse != "en") {
|
||||
return getLanguage(i18nFolder + availLangs['en'].fileName);
|
||||
if (langToUse != "en_EN") {
|
||||
return getLanguage(i18nFolder + availLangs['en_EN'].fileName);
|
||||
}
|
||||
}).then((langData) => {
|
||||
if (langData) counterpart.registerTranslations('en', langData);
|
||||
if (langData) counterpart.registerTranslations('en_EN', langData);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue