1 import i18n from 'i18next'
2 import LanguageDetector from 'i18next-browser-languagedetector'
4 import transaction_zh from './locales/zh/translation.json'
5 import transaction_en from './locales/en/translation.json'
7 i18n.use(LanguageDetector).init({
8 // we init with resources
11 translations: transaction_en
14 translations: transaction_zh
20 // have a common namespace used around the full app
22 defaultNS: 'translations',
25 escapeValue: false, // not needed for react!!