aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-18 14:58:53 -0300
committerSebastian <sebasjm@gmail.com>2022-03-18 14:58:53 -0300
commit98761a2b8d50b1547ed1230f7c462ed205656c77 (patch)
treeaeb28431fb6f64220d49210fa2eeb7b67173e5a3 /packages/taler-util
parentd9cbf1b63b16397ef04d2eb87213a852d95ad156 (diff)
if the lang is not found show the source string instead. source string must be english
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/i18n.ts4
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]);
}