Merge pull request #3961 from h3poteto/feat/hu_eu
refs #3923 Add Basque and Hungarian for languages
This commit is contained in:
commit
e62cfabfa5
|
@ -2,11 +2,13 @@ import i18next, { InitOptions } from 'i18next'
|
||||||
import cs from '~/src/config/locales/cs/translation.json'
|
import cs from '~/src/config/locales/cs/translation.json'
|
||||||
import de from '~/src/config/locales/de/translation.json'
|
import de from '~/src/config/locales/de/translation.json'
|
||||||
import en from '~/src/config/locales/en/translation.json'
|
import en from '~/src/config/locales/en/translation.json'
|
||||||
|
import eu from '~/src/config/locales/eu/translation.json'
|
||||||
import es_es from '~/src/config/locales/es_es/translation.json'
|
import es_es from '~/src/config/locales/es_es/translation.json'
|
||||||
import fa from '~/src/config/locales/fa/translation.json'
|
import fa from '~/src/config/locales/fa/translation.json'
|
||||||
import fr from '~/src/config/locales/fr/translation.json'
|
import fr from '~/src/config/locales/fr/translation.json'
|
||||||
import gd from '~/src/config/locales/gd/translation.json'
|
import gd from '~/src/config/locales/gd/translation.json'
|
||||||
import id from '~/src/config/locales/id/translation.json'
|
import id from '~/src/config/locales/id/translation.json'
|
||||||
|
import hu from '~/src/config/locales/hu/translation.json'
|
||||||
import it from '~/src/config/locales/it/translation.json'
|
import it from '~/src/config/locales/it/translation.json'
|
||||||
import is from '~/src/config/locales/is/translation.json'
|
import is from '~/src/config/locales/is/translation.json'
|
||||||
import ja from '~/src/config/locales/ja/translation.json'
|
import ja from '~/src/config/locales/ja/translation.json'
|
||||||
|
@ -36,6 +38,9 @@ const options: InitOptions = {
|
||||||
en: {
|
en: {
|
||||||
translation: en
|
translation: en
|
||||||
},
|
},
|
||||||
|
eu: {
|
||||||
|
translation: eu
|
||||||
|
},
|
||||||
es_es: {
|
es_es: {
|
||||||
translation: es_es
|
translation: es_es
|
||||||
},
|
},
|
||||||
|
@ -48,6 +53,9 @@ const options: InitOptions = {
|
||||||
gd: {
|
gd: {
|
||||||
translation: gd
|
translation: gd
|
||||||
},
|
},
|
||||||
|
hu: {
|
||||||
|
translation: hu
|
||||||
|
},
|
||||||
id: {
|
id: {
|
||||||
translation: id
|
translation: id
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,6 +26,8 @@ export type LanguageList = {
|
||||||
tzm: LanguageType
|
tzm: LanguageType
|
||||||
fa: LanguageType
|
fa: LanguageType
|
||||||
is: LanguageType
|
is: LanguageType
|
||||||
|
eu: LanguageType
|
||||||
|
hu: LanguageType
|
||||||
}
|
}
|
||||||
|
|
||||||
const languageList: LanguageList = {
|
const languageList: LanguageList = {
|
||||||
|
@ -39,6 +41,11 @@ const languageList: LanguageList = {
|
||||||
key: 'en',
|
key: 'en',
|
||||||
rfc4646: 'en-US'
|
rfc4646: 'en-US'
|
||||||
},
|
},
|
||||||
|
eu: {
|
||||||
|
name: 'Basque',
|
||||||
|
key: 'eu',
|
||||||
|
rfc4646: 'eu'
|
||||||
|
},
|
||||||
fa: {
|
fa: {
|
||||||
name: 'Persian',
|
name: 'Persian',
|
||||||
key: 'fa',
|
key: 'fa',
|
||||||
|
@ -69,6 +76,11 @@ const languageList: LanguageList = {
|
||||||
key: 'pl',
|
key: 'pl',
|
||||||
rfc4646: 'pl'
|
rfc4646: 'pl'
|
||||||
},
|
},
|
||||||
|
hu: {
|
||||||
|
name: 'Hungarian',
|
||||||
|
key: 'hu',
|
||||||
|
rfc4646: 'hu'
|
||||||
|
},
|
||||||
id: {
|
id: {
|
||||||
name: 'Indonesian',
|
name: 'Indonesian',
|
||||||
key: 'id',
|
key: 'id',
|
||||||
|
|
|
@ -49,10 +49,12 @@ export default defineComponent({
|
||||||
Language.cs,
|
Language.cs,
|
||||||
Language.de,
|
Language.de,
|
||||||
Language.en,
|
Language.en,
|
||||||
|
Language.eu,
|
||||||
Language.es_es,
|
Language.es_es,
|
||||||
Language.fa,
|
Language.fa,
|
||||||
Language.fr,
|
Language.fr,
|
||||||
Language.gd,
|
Language.gd,
|
||||||
|
Language.hu,
|
||||||
Language.id,
|
Language.id,
|
||||||
Language.is,
|
Language.is,
|
||||||
Language.it,
|
Language.it,
|
||||||
|
|
Loading…
Reference in New Issue