Use correct method to set i18n into debug mode

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-05-09 19:11:31 +02:00
parent 83001eb5b0
commit bbd628c81b

View file

@ -10,6 +10,7 @@ import LanguageDetector from 'i18next-browser-languagedetector'
import resourcesToBackend from 'i18next-resources-to-backend' import resourcesToBackend from 'i18next-resources-to-backend'
import { Settings } from 'luxon' import { Settings } from 'luxon'
import { initReactI18next } from 'react-i18next' import { initReactI18next } from 'react-i18next'
import { isDevMode } from '../../../utils/test-modes'
export const setUpI18n = async (): Promise<void> => { export const setUpI18n = async (): Promise<void> => {
await i18nUse( await i18nUse(
@ -27,7 +28,7 @@ export const setUpI18n = async (): Promise<void> => {
.use(initReactI18next) .use(initReactI18next)
.init({ .init({
fallbackLng: 'en', fallbackLng: 'en',
debug: process.env.NODE_ENV !== 'production', debug: isDevMode,
interpolation: { interpolation: {
escapeValue: false escapeValue: false
} }