From 7c0a14f6ae687aa75ace712f41bc26924b5400a8 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao <_accounts@nareshkumarrao.com> Date: Thu, 19 Aug 2021 22:33:55 +0200 Subject: [PATCH] i18n debug based on .env --- .env.template | 3 ++- src/i18n.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.template b/.env.template index 37c1000..822b7ae 100644 --- a/.env.template +++ b/.env.template @@ -1,4 +1,5 @@ REACT_APP_API_URL= REACT_APP_TELEGRAM_BOT_NAME= -# REACT_APP_DONATE_LINK= \ No newline at end of file +# REACT_APP_DONATE_LINK= +REACT_APP_I18N_DEBUG=true \ No newline at end of file diff --git a/src/i18n.js b/src/i18n.js index 588bd88..5fdff60 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -28,7 +28,7 @@ i18n.use(initReactI18next).init({ interpolation: { escapeValue: false, }, - debug: true, + debug: process.env.REACT_APP_I18N_DEBUG === "true" ? true : false, }); export default i18n;