From 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Aug 2020 15:53:50 +0530 Subject: nuke some console.log statements, test wallet testing functionality in integration test --- packages/taler-wallet-core/src/i18n/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/i18n') 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]); } -- cgit v1.2.3