mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-24 13:41:25 +10:00
- add multiple languages
- switch from moment to dayjs
This commit is contained in:
@ -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({
|
||||
|
||||
@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user