Revert changes of the key used

pull/21833/head
Marcel 2017-06-01 21:10:58 +02:00 committed by GitHub
parent 1b35f816fb
commit 8c2728ffc5
1 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ export function setLanguage(preferredLangs) {
} }
if (!langToUse) { if (!langToUse) {
// Fallback to en_EN if none is found // Fallback to en_EN if none is found
langToUse = 'en_EN' langToUse = 'en'
console.error("Unable to find an appropriate language"); console.error("Unable to find an appropriate language");
} }
@ -143,11 +143,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_EN") { if (langToUse != "en") {
return getLanguage(i18nFolder + availLangs['en_EN'].fileName); return getLanguage(i18nFolder + availLangs['en'].fileName);
} }
}).then((langData) => { }).then((langData) => {
if (langData) counterpart.registerTranslations('en_EN', langData); if (langData) counterpart.registerTranslations('en', langData);
}); });
}; };