if the lang is not found show the source string instead. source string must be english
This commit is contained in:
parent
d9cbf1b63b
commit
98761a2b8d
@ -14,8 +14,8 @@ export function setupI18n(lang: string, strings: { [s: string]: any }): any {
|
||||
lang = lang.replace("_", "-");
|
||||
|
||||
if (!strings[lang]) {
|
||||
lang = "en-US";
|
||||
logger.warn(`language ${lang} not found, defaulting to english`);
|
||||
strings[lang] = {}
|
||||
logger.warn(`language ${lang} not found, defaulting to source strings`);
|
||||
}
|
||||
jed = new jedLib.Jed(strings[lang]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user