fix(env): update variable validations (#40813)

This commit is contained in:
Mrugesh Mohapatra
2021-01-28 13:52:39 +05:30
committed by Mrugesh Mohapatra
parent 58c6c54c67
commit 0b944ddfde
3 changed files with 51 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
const { environment, clientLocale } = require('../config/env');
const { clientLocale } = require('../config/env');
const { i18nextCodes } = require('./allLangs');
const i18nextCode = i18nextCodes[clientLocale];
@@ -20,7 +20,8 @@ i18n.use(initReactI18next).init({
ns: ['translations', 'trending', 'intro'],
defaultNS: 'translations',
returnObjects: true,
debug: environment === 'development',
// Uncomment the next line for debug logging
// debug: true,
interpolation: {
escapeValue: false
},