diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-18 14:58:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-18 14:58:53 -0300 |
commit | 98761a2b8d50b1547ed1230f7c462ed205656c77 (patch) | |
tree | aeb28431fb6f64220d49210fa2eeb7b67173e5a3 | |
parent | d9cbf1b63b16397ef04d2eb87213a852d95ad156 (diff) |
if the lang is not found show the source string instead. source string must be english
-rw-r--r-- | packages/taler-util/src/i18n.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-util/src/i18n.ts b/packages/taler-util/src/i18n.ts index be7cfe6a0..c8895521f 100644 --- a/packages/taler-util/src/i18n.ts +++ b/packages/taler-util/src/i18n.ts @@ -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]); } |