mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-24 16:01:20 +01:00
refs #3323 Add Persian as a translation
This commit is contained in:
parent
caa664f312
commit
02b439a321
@ -2,7 +2,27 @@ import * as path from 'path'
|
||||
import fs from 'fs'
|
||||
import keys from 'all-object-keys'
|
||||
|
||||
const locales = ['de', 'fr', 'gd', 'it', 'ja', 'ko', 'pl', 'it', 'zh_cn', 'zh_tw', 'cs', 'es_es', 'no', 'pt_pt', 'ru', 'si', 'sv_se', 'tzm']
|
||||
const locales = [
|
||||
'de',
|
||||
'fr',
|
||||
'gd',
|
||||
'it',
|
||||
'ja',
|
||||
'ko',
|
||||
'pl',
|
||||
'it',
|
||||
'zh_cn',
|
||||
'zh_tw',
|
||||
'cs',
|
||||
'es_es',
|
||||
'no',
|
||||
'pt_pt',
|
||||
'ru',
|
||||
'si',
|
||||
'sv_se',
|
||||
'tzm',
|
||||
'fa'
|
||||
]
|
||||
|
||||
describe('i18n', () => {
|
||||
describe('should not define duplicate keys', () => {
|
||||
|
@ -3,6 +3,7 @@ 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 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'
|
||||
@ -37,6 +38,9 @@ const options: InitOptions = {
|
||||
es_es: {
|
||||
translation: es_es
|
||||
},
|
||||
fa: {
|
||||
translation: fa
|
||||
},
|
||||
fr: {
|
||||
translation: fr
|
||||
},
|
||||
|
@ -24,6 +24,7 @@ export type LanguageList = {
|
||||
si: LanguageType
|
||||
sv_se: LanguageType
|
||||
tzm: LanguageType
|
||||
fa: LanguageType
|
||||
}
|
||||
|
||||
const languageList: LanguageList = {
|
||||
@ -37,6 +38,11 @@ const languageList: LanguageList = {
|
||||
key: 'en',
|
||||
rfc4646: 'en-US'
|
||||
},
|
||||
fa: {
|
||||
name: 'Persian',
|
||||
key: 'fa',
|
||||
rfc4646: 'fa'
|
||||
},
|
||||
fr: {
|
||||
name: 'Français',
|
||||
key: 'fr',
|
||||
|
@ -50,6 +50,7 @@ export default defineComponent({
|
||||
Language.de,
|
||||
Language.en,
|
||||
Language.es_es,
|
||||
Language.fa,
|
||||
Language.fr,
|
||||
Language.gd,
|
||||
Language.id,
|
||||
|
Loading…
Reference in New Issue
Block a user