From 8543ffd17a94c76154066b6a8ae798f0271512be Mon Sep 17 00:00:00 2001 From: kngako Date: Fri, 14 Oct 2022 14:10:03 +0200 Subject: [PATCH] Remove logging --- index.js | 13 +------------ lib/i18n-util/index.js | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/index.js b/index.js index 25ce4a9..64b3a3b 100644 --- a/index.js +++ b/index.js @@ -1,14 +1,3 @@ const i18nUtil = require("./lib/i18n-util") -module.exports.getText = i18nUtil.getText - -console.log("Basic: ", this.getText( - "en", - "lowBalancePleaseIncrease", - { - balance: 100, - currencyTicker: "ZAR", - requestedAmount: 110 - } - -)) \ No newline at end of file +module.exports.getText = i18nUtil.getText \ No newline at end of file diff --git a/lib/i18n-util/index.js b/lib/i18n-util/index.js index a4b4b75..2597ddd 100644 --- a/lib/i18n-util/index.js +++ b/lib/i18n-util/index.js @@ -6,7 +6,7 @@ module.exports.baseLocale = "en" module.exports.missingKeys = [] i18n.configure({ directory: path.join(__dirname, '../../locales'), - // defaultLocale: baseLocale, + defaultLocale: this.baseLocale, extension: '.yaml', updateFiles: false, parser: YAML,