Fix tests

We do not have a en.json but a en_EN.json
This commit is contained in:
Marcel 2017-06-01 20:53:59 +02:00 committed by GitHub
parent c5921c4c28
commit cbf967a86d

View file

@ -141,11 +141,11 @@ export function setLanguage(preferredLangs) {
console.log("set language to " + langToUse); console.log("set language to " + langToUse);
// Set 'en' as fallback language: // Set 'en' as fallback language:
if (langToUse != "en") { if (langToUse != "en_EN") {
return getLanguage(i18nFolder + availLangs['en'].fileName); return getLanguage(i18nFolder + availLangs['en_EN'].fileName);
} }
}).then((langData) => { }).then((langData) => {
if (langData) counterpart.registerTranslations('en', langData); if (langData) counterpart.registerTranslations('en_EN', langData);
}); });
}; };