completed translation extraction of profile and work

This commit is contained in:
Amruth Pillai
2020-03-29 23:28:24 +05:30
parent e75c0769c6
commit 9510d44949
18 changed files with 275 additions and 177 deletions

View File

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