- add multiple languages

- switch from moment to dayjs
This commit is contained in:
Amruth Pillai
2020-07-21 11:07:19 +05:30
parent e4f40f04ff
commit 7aab7c74f6
28 changed files with 255 additions and 416 deletions

View File

@ -3,6 +3,14 @@ import { initReactI18next } from 'react-i18next';
import resources from './locales';
const languages = [
{
code: 'da',
name: 'Danish (Dansk)',
},
{
code: 'nl',
name: 'Dutch (Nederlands)',
},
{
code: 'en',
name: 'English (US)',
@ -15,6 +23,10 @@ const languages = [
code: 'fr',
name: 'French (Français)',
},
{
code: 'de',
name: 'German (Deutsche)',
},
{
code: 'kn',
name: 'Kannada (ಕನ್ನಡ)',
@ -31,10 +43,6 @@ const languages = [
code: 'tr',
name: 'Turkish (Türkçe)',
},
{
code: 'nl',
name: 'Dutch (Nederlands)',
},
];
i18n.use(initReactI18next).init({

View File

@ -1,13 +1,17 @@
import da from './da.json';
import de from './de.json';
import en from './en.json';
import es from './es.json';
import fi from './fi.json';
import fr from './fr.json';
import kn from './kn.json';
import nl from './nl.json';
import ptBr from './pt-br.json';
import tr from './tr.json';
import nl from './nl.json';
export default {
da: { translation: da },
de: { translation: de },
en: { translation: en },
es: { translation: es },
fi: { translation: fi },