diff --git a/src/languageHandler.js b/src/languageHandler.js index ab29dd926e..798798b6e5 100644 --- a/src/languageHandler.js +++ b/src/languageHandler.js @@ -130,7 +130,9 @@ export function setLanguage(preferredLangs) { } } if (!langToUse) { - throw new Error("Unable to find an appropriate language"); + // Fallback to en_EN if none is found + langToUse = 'en' + console.error("Unable to find an appropriate language"); } return getLanguage(i18nFolder + availLangs[langToUse].fileName); diff --git a/test/i18n/languages.json b/test/i18n/languages.json index e3a2595370..5dc02003f7 100644 --- a/test/i18n/languages.json +++ b/test/i18n/languages.json @@ -1,4 +1,6 @@ { - "fileName": "en_EN.json", - "label": "English" + "en": { + "fileName": "en_EN.json", + "label": "English" + } }