mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 03:04:21 -05:00
Use correct method to set i18n into debug mode
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
83001eb5b0
commit
bbd628c81b
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import LanguageDetector from 'i18next-browser-languagedetector'
|
|||
import resourcesToBackend from 'i18next-resources-to-backend'
|
||||
import { Settings } from 'luxon'
|
||||
import { initReactI18next } from 'react-i18next'
|
||||
import { isDevMode } from '../../../utils/test-modes'
|
||||
|
||||
export const setUpI18n = async (): Promise<void> => {
|
||||
await i18nUse(
|
||||
|
@ -27,7 +28,7 @@ export const setUpI18n = async (): Promise<void> => {
|
|||
.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
debug: process.env.NODE_ENV !== 'production',
|
||||
debug: isDevMode,
|
||||
interpolation: {
|
||||
escapeValue: false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue