commit 98761a2b8d50b1547ed1230f7c462ed205656c77 parent d9cbf1b63b16397ef04d2eb87213a852d95ad156 Author: Sebastian <sebasjm@gmail.com> Date: Fri, 18 Mar 2022 14:58:53 -0300 if the lang is not found show the source string instead. source string must be english Diffstat:
| M | packages/taler-util/src/i18n.ts | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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]); }