Merge pull request #2578 from h3poteto/feat/locale-gd
Add Scottish Gaelic as translation
This commit is contained in:
commit
0f89bd8fea
|
@ -2,7 +2,7 @@ import * as path from 'path'
|
|||
import fs from 'fs'
|
||||
import keys from 'all-object-keys'
|
||||
|
||||
const locales = ['de', 'fr', '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']
|
||||
|
||||
describe('i18n', () => {
|
||||
describe('should not define duplicate keys', () => {
|
||||
|
|
|
@ -4,6 +4,7 @@ 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 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 it from '~/src/config/locales/it/translation.json'
|
||||
import ja from '~/src/config/locales/ja/translation.json'
|
||||
|
@ -39,6 +40,9 @@ const options: InitOptions = {
|
|||
fr: {
|
||||
translation: fr
|
||||
},
|
||||
gd: {
|
||||
translation: gd
|
||||
},
|
||||
id: {
|
||||
translation: id
|
||||
},
|
||||
|
|
|
@ -8,6 +8,7 @@ export type LanguageList = {
|
|||
de: LanguageType
|
||||
en: LanguageType
|
||||
fr: LanguageType
|
||||
gd: LanguageType
|
||||
ja: LanguageType
|
||||
ko: LanguageType
|
||||
pl: LanguageType
|
||||
|
|
|
@ -14,6 +14,11 @@ export default {
|
|||
key: 'fr',
|
||||
rfc4646: 'fr'
|
||||
},
|
||||
gd: {
|
||||
name: 'Gàidhlig',
|
||||
key: 'gd',
|
||||
rfc4646: 'gd'
|
||||
},
|
||||
ja: {
|
||||
name: '日本語',
|
||||
key: 'ja',
|
||||
|
|
|
@ -43,6 +43,7 @@ export default {
|
|||
Language.en,
|
||||
Language.es_es,
|
||||
Language.fr,
|
||||
Language.gd,
|
||||
Language.id,
|
||||
Language.it,
|
||||
Language.ja,
|
||||
|
|
Loading…
Reference in New Issue