gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: if the lang is not found show


From: gnunet
Subject: [taler-wallet-core] branch master updated: if the lang is not found show the source string instead. source string must be english
Date: Fri, 18 Mar 2022 18:59:01 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 98761a2b if the lang is not found show the source string instead. 
source string must be english
98761a2b is described below

commit 98761a2b8d50b1547ed1230f7c462ed205656c77
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Mar 18 14:58:53 2022 -0300

    if the lang is not found show the source string instead. source string must 
be english
---
 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
index be7cfe6a..c8895521 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]);
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]