1
0
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:
AkiraFukushima 2022-11-04 20:07:26 +09:00
parent caa664f312
commit 02b439a321
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
4 changed files with 32 additions and 1 deletions

View File

@ -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', () => {

View File

@ -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
},

View File

@ -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',

View File

@ -50,6 +50,7 @@ export default defineComponent({
Language.de,
Language.en,
Language.es_es,
Language.fa,
Language.fr,
Language.gd,
Language.id,