Skip to content

Commit

Permalink
Merge pull request #3961 from h3poteto/feat/hu_eu
Browse files Browse the repository at this point in the history
refs #3923 Add Basque and Hungarian for languages
  • Loading branch information
h3poteto authored Dec 30, 2022
2 parents e856ef7 + fafb485 commit e62cfab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -36,6 +38,9 @@ const options: InitOptions = {
en: {
translation: en
},
eu: {
translation: eu
},
es_es: {
translation: es_es
},
Expand All @@ -48,6 +53,9 @@ const options: InitOptions = {
gd: {
translation: gd
},
hu: {
translation: hu
},
id: {
translation: id
},
Expand Down
12 changes: 12 additions & 0 deletions src/constants/language/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export type LanguageList = {
tzm: LanguageType
fa: LanguageType
is: LanguageType
eu: LanguageType
hu: LanguageType
}

const languageList: LanguageList = {
Expand All @@ -39,6 +41,11 @@ const languageList: LanguageList = {
key: 'en',
rfc4646: 'en-US'
},
eu: {
name: 'Basque',
key: 'eu',
rfc4646: 'eu'
},
fa: {
name: 'Persian',
key: 'fa',
Expand Down Expand Up @@ -69,6 +76,11 @@ const languageList: LanguageList = {
key: 'pl',
rfc4646: 'pl'
},
hu: {
name: 'Hungarian',
key: 'hu',
rfc4646: 'hu'
},
id: {
name: 'Indonesian',
key: 'id',
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/components/Preferences/Language.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e62cfab

Please sign in to comment.