diff --git a/electron-app/ecoindex-app/src/configs/i18nResources.js b/electron-app/ecoindex-app/src/configs/i18nResources.js index a2d86c0..0f5a20c 100644 --- a/electron-app/ecoindex-app/src/configs/i18nResources.js +++ b/electron-app/ecoindex-app/src/configs/i18nResources.js @@ -12,7 +12,7 @@ try { ) .on('failedLoading', (lng, ns, msg) => console.error(msg)) .init({ - debug: true, + debug: false, fallbackLng: 'en', interpolation: { escapeValue: false, // not needed for react as it escapes by default diff --git a/electron-app/ecoindex-app/src/configs/i18next.config.ts b/electron-app/ecoindex-app/src/configs/i18next.config.ts index b8d2604..ad6e688 100644 --- a/electron-app/ecoindex-app/src/configs/i18next.config.ts +++ b/electron-app/ecoindex-app/src/configs/i18next.config.ts @@ -14,7 +14,7 @@ try { const root = process.cwd() const { isPackaged } = app const i18nextOptions = { - debug: true, + debug: !IS_PROD, backend: { // path where resources get loaded from // loadPath: './src/locales/{{lng}}/{{ns}}.json',