mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Don't show i18n messages in production mode
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
8a2d26f718
commit
ae38ab007a
1 changed files with 2 additions and 2 deletions
|
@ -17,13 +17,13 @@ export const setUpI18n = async (): Promise<void> => {
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
debug: true,
|
debug: process.env.NODE_ENV !== 'production',
|
||||||
backend: {
|
backend: {
|
||||||
loadPath: '/locales/{{lng}}.json'
|
loadPath: '/locales/{{lng}}.json'
|
||||||
},
|
},
|
||||||
|
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false // not needed for react as it escapes by default
|
escapeValue: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue