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 { initReactI18next } from 'react-i18next';
|
||||
|
||||
import ar from './locales/ar.json';
|
||||
import ca from './locales/ca.json';
|
||||
import cs from './locales/cs.json';
|
||||
import de from './locales/de.json';
|
||||
import en from './locales/en.json';
|
||||
import es from './locales/es.json';
|
||||
import eu from './locales/eu.json';
|
||||
import fa from './locales/fa.json';
|
||||
import fi from './locales/fi.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';
|
||||
|
||||
const resources = {
|
||||
ar: { translation: ar },
|
||||
ca: { translation: ca },
|
||||
cs: { translation: cs },
|
||||
de: { translation: de },
|
||||
en: { translation: en },
|
||||
es: { translation: es },
|
||||
eu: { translation: eu },
|
||||
fa: { translation: fa },
|
||||
fi: { translation: fi },
|
||||
fr: { translation: fr },
|
||||
|
|
@ -63,6 +67,10 @@ export const languages = [
|
|||
label: 'English',
|
||||
value: 'en',
|
||||
},
|
||||
{
|
||||
label: 'العربية',
|
||||
value: 'ar',
|
||||
},
|
||||
{
|
||||
label: 'Català',
|
||||
value: 'ca',
|
||||
|
|
@ -71,13 +79,17 @@ export const languages = [
|
|||
label: 'Čeština',
|
||||
value: 'cs',
|
||||
},
|
||||
{
|
||||
label: 'Deutsch',
|
||||
value: 'de',
|
||||
},
|
||||
{
|
||||
label: 'Español',
|
||||
value: 'es',
|
||||
},
|
||||
{
|
||||
label: 'Deutsch',
|
||||
value: 'de',
|
||||
label: 'Basque',
|
||||
value: 'eu',
|
||||
},
|
||||
{
|
||||
label: 'Français',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue