mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
add new languages to config
This commit is contained in:
parent
5a411417b0
commit
1081829aa4
1 changed files with 14 additions and 2 deletions
|
|
@ -2,11 +2,13 @@ import { PostProcessorModule, StringMap, TOptions } from 'i18next';
|
||||||
import i18n from 'i18next';
|
import i18n from 'i18next';
|
||||||
import { initReactI18next } from 'react-i18next';
|
import { initReactI18next } from 'react-i18next';
|
||||||
|
|
||||||
|
import ar from './locales/ar.json';
|
||||||
import ca from './locales/ca.json';
|
import ca from './locales/ca.json';
|
||||||
import cs from './locales/cs.json';
|
import cs from './locales/cs.json';
|
||||||
import de from './locales/de.json';
|
import de from './locales/de.json';
|
||||||
import en from './locales/en.json';
|
import en from './locales/en.json';
|
||||||
import es from './locales/es.json';
|
import es from './locales/es.json';
|
||||||
|
import eu from './locales/eu.json';
|
||||||
import fa from './locales/fa.json';
|
import fa from './locales/fa.json';
|
||||||
import fi from './locales/fi.json';
|
import fi from './locales/fi.json';
|
||||||
import fr from './locales/fr.json';
|
import fr from './locales/fr.json';
|
||||||
|
|
@ -30,11 +32,13 @@ import zhHans from './locales/zh-Hans.json';
|
||||||
import zhHant from './locales/zh-Hant.json';
|
import zhHant from './locales/zh-Hant.json';
|
||||||
|
|
||||||
const resources = {
|
const resources = {
|
||||||
|
ar: { translation: ar },
|
||||||
ca: { translation: ca },
|
ca: { translation: ca },
|
||||||
cs: { translation: cs },
|
cs: { translation: cs },
|
||||||
de: { translation: de },
|
de: { translation: de },
|
||||||
en: { translation: en },
|
en: { translation: en },
|
||||||
es: { translation: es },
|
es: { translation: es },
|
||||||
|
eu: { translation: eu },
|
||||||
fa: { translation: fa },
|
fa: { translation: fa },
|
||||||
fi: { translation: fi },
|
fi: { translation: fi },
|
||||||
fr: { translation: fr },
|
fr: { translation: fr },
|
||||||
|
|
@ -63,6 +67,10 @@ export const languages = [
|
||||||
label: 'English',
|
label: 'English',
|
||||||
value: 'en',
|
value: 'en',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'العربية',
|
||||||
|
value: 'ar',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Català',
|
label: 'Català',
|
||||||
value: 'ca',
|
value: 'ca',
|
||||||
|
|
@ -71,13 +79,17 @@ export const languages = [
|
||||||
label: 'Čeština',
|
label: 'Čeština',
|
||||||
value: 'cs',
|
value: 'cs',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Deutsch',
|
||||||
|
value: 'de',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Español',
|
label: 'Español',
|
||||||
value: 'es',
|
value: 'es',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Deutsch',
|
label: 'Basque',
|
||||||
value: 'de',
|
value: 'eu',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Français',
|
label: 'Français',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue