diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
commit | 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f (patch) | |
tree | 17ff47fea3651dad192beee5d32c5fd4c538fa39 /packages/taler-wallet-core/src/i18n | |
parent | e3850158c249d890399fdb9e083ec7e654a8380f (diff) | |
download | wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.tar.gz wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.tar.bz2 wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.zip |
nuke some console.log statements, test wallet testing functionality in integration test
Diffstat (limited to 'packages/taler-wallet-core/src/i18n')
-rw-r--r-- | packages/taler-wallet-core/src/i18n/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/i18n/index.ts b/packages/taler-wallet-core/src/i18n/index.ts index b248d2666..c5b70b1fd 100644 --- a/packages/taler-wallet-core/src/i18n/index.ts +++ b/packages/taler-wallet-core/src/i18n/index.ts @@ -26,6 +26,9 @@ export { strings } from "./strings"; // @ts-ignore: no type decl for this library import * as jedLib from "jed"; +import { Logger } from "../util/logging"; + +const logger = new Logger("i18n/index.ts"); export let jed: any = undefined; @@ -38,7 +41,7 @@ export function setupI18n(lang: string): any { if (!strings[lang]) { lang = "en-US"; - console.log(`language ${lang} not found, defaulting to english`); + logger.warn(`language ${lang} not found, defaulting to english`); } jed = new jedLib.Jed(strings[lang]); } |