commit
54ae92e9fb
2 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"en": {
|
||||
"fileName": "en_EN.json",
|
||||
"label": "English"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue