Skip to content

Commit

Permalink
feat: enable debug i18n only on DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Aug 9, 2024
1 parent 1b394ed commit f763023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electron-app/ecoindex-app/src/configs/i18nResources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion electron-app/ecoindex-app/src/configs/i18next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f763023

Please sign in to comment.