Merge pull request #3961 from h3poteto/feat/hu_eu

refs #3923 Add Basque and Hungarian for languages
This commit is contained in:
AkiraFukushima 2022-12-30 16:03:18 +09:00 committed by GitHub
commit e62cfabfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -2,11 +2,13 @@ import i18next, { InitOptions } from 'i18next'
import cs from '~/src/config/locales/cs/translation.json'
import de from '~/src/config/locales/de/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 fa from '~/src/config/locales/fa/translation.json'
import fr from '~/src/config/locales/fr/translation.json'
import gd from '~/src/config/locales/gd/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 is from '~/src/config/locales/is/translation.json'
import ja from '~/src/config/locales/ja/translation.json'
@ -36,6 +38,9 @@ const options: InitOptions = {
en: {
translation: en
},
eu: {
translation: eu
},
es_es: {
translation: es_es
},
@ -48,6 +53,9 @@ const options: InitOptions = {
gd: {
translation: gd
},
hu: {
translation: hu
},
id: {
translation: id
},

View File

@ -26,6 +26,8 @@ export type LanguageList = {
tzm: LanguageType
fa: LanguageType
is: LanguageType
eu: LanguageType
hu: LanguageType
}
const languageList: LanguageList = {
@ -39,6 +41,11 @@ const languageList: LanguageList = {
key: 'en',
rfc4646: 'en-US'
},
eu: {
name: 'Basque',
key: 'eu',
rfc4646: 'eu'
},
fa: {
name: 'Persian',
key: 'fa',
@ -69,6 +76,11 @@ const languageList: LanguageList = {
key: 'pl',
rfc4646: 'pl'
},
hu: {
name: 'Hungarian',
key: 'hu',
rfc4646: 'hu'
},
id: {
name: 'Indonesian',
key: 'id',

View File

@ -49,10 +49,12 @@ export default defineComponent({
Language.cs,
Language.de,
Language.en,
Language.eu,
Language.es_es,
Language.fa,
Language.fr,
Language.gd,
Language.hu,
Language.id,
Language.is,
Language.it,