Add Scottish Gaelic as translation

This commit is contained in:
AkiraFukushima 2021-07-23 23:13:40 +09:00
parent ffaeea38af
commit 8b1699f8ba
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
5 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import * as path from 'path'
import fs from 'fs' import fs from 'fs'
import keys from 'all-object-keys' 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('i18n', () => {
describe('should not define duplicate keys', () => { describe('should not define duplicate keys', () => {

View File

@ -4,6 +4,7 @@ import de from '~/src/config/locales/de/translation.json'
import en from '~/src/config/locales/en/translation.json' import en from '~/src/config/locales/en/translation.json'
import es_es from '~/src/config/locales/es_es/translation.json' import es_es from '~/src/config/locales/es_es/translation.json'
import fr from '~/src/config/locales/fr/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 id from '~/src/config/locales/id/translation.json'
import it from '~/src/config/locales/it/translation.json' import it from '~/src/config/locales/it/translation.json'
import ja from '~/src/config/locales/ja/translation.json' import ja from '~/src/config/locales/ja/translation.json'
@ -39,6 +40,9 @@ const options: InitOptions = {
fr: { fr: {
translation: fr translation: fr
}, },
gd: {
translation: gd
},
id: { id: {
translation: id translation: id
}, },

View File

@ -8,6 +8,7 @@ export type LanguageList = {
de: LanguageType de: LanguageType
en: LanguageType en: LanguageType
fr: LanguageType fr: LanguageType
gd: LanguageType
ja: LanguageType ja: LanguageType
ko: LanguageType ko: LanguageType
pl: LanguageType pl: LanguageType

View File

@ -14,6 +14,11 @@ export default {
key: 'fr', key: 'fr',
rfc4646: 'fr' rfc4646: 'fr'
}, },
gd: {
name: 'Gàidhlig',
key: 'gd',
rfc4646: 'gd'
},
ja: { ja: {
name: '日本語', name: '日本語',
key: 'ja', key: 'ja',

View File

@ -43,6 +43,7 @@ export default {
Language.en, Language.en,
Language.es_es, Language.es_es,
Language.fr, Language.fr,
Language.gd,
Language.id, Language.id,
Language.it, Language.it,
Language.ja, Language.ja,