File size: 382 Bytes
6b8fc2c
 
 
 
 
 
 
badd5fe
 
6b8fc2c
 
 
6e3eead
 
 
 
 
6b8fc2c
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';

import translation_en from './en.json';
import translation_zh from './zh.json';

const resources = {
  en: translation_en,
  zh: translation_zh,
};

i18n.use(initReactI18next).init({
  resources,
  lng: 'en',
  interpolation: {
    escapeValue: false,
  },
});

export default i18n;