chore(client): refactor & organise config (#40875)

This commit is contained in:
Oliver Eyton-Williams
2021-02-03 10:52:07 +01:00
committed by GitHub
parent c1f9cd93f5
commit fffc0e51ec
32 changed files with 36 additions and 39 deletions

View File

@@ -1,8 +1,8 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
const { clientLocale } = require('../config/env');
const { i18nextCodes } = require('./allLangs');
import { clientLocale } from '../../config/env.json';
import { i18nextCodes } from './allLangs';
const i18nextCode = i18nextCodes[clientLocale];