added settings tab, add language chooser

This commit is contained in:
Amruth Pillai
2020-03-30 13:50:47 +05:30
parent e27655aeea
commit 1b2bae43be
11 changed files with 110 additions and 7 deletions

View File

@ -3,6 +3,13 @@ import { initReactI18next } from 'react-i18next';
import resources from './resources';
const languages = [
{
code: 'en',
name: 'English',
},
];
i18n.use(initReactI18next).init({
lng: 'en',
fallbackLng: 'en',
@ -12,4 +19,6 @@ i18n.use(initReactI18next).init({
defaultNS: 'app',
});
export { languages };
export default i18n;