if the lang is not found show the source string instead. source string must be english

This commit is contained in:
Sebastian 2022-03-18 14:58:53 -03:00
parent d9cbf1b63b
commit 98761a2b8d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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]);
}