it works!

This commit is contained in:
Amruth Pillai
2020-03-29 21:45:24 +05:30
parent 2e871f2d88
commit e75c0769c6
6 changed files with 143 additions and 79 deletions

19
src/i18n/index.js Normal file
View File

@ -0,0 +1,19 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import leftSidebarEn from './locales/en/leftSidebar.json';
i18n.use(initReactI18next).init({
lng: 'en',
fallbackLng: 'en',
debug: true,
resources: {
en: {
translations: leftSidebarEn,
},
},
ns: ['translations'],
defaultNS: 'translations',
});
export default i18n;