diff --git a/spec/config/i18n.spec.ts b/spec/config/i18n.spec.ts index 749a9c58..a5ce1d4f 100644 --- a/spec/config/i18n.spec.ts +++ b/spec/config/i18n.spec.ts @@ -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', () => { diff --git a/src/config/i18n.ts b/src/config/i18n.ts index e4ac0b75..b8096b37 100644 --- a/src/config/i18n.ts +++ b/src/config/i18n.ts @@ -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 }, diff --git a/src/constants/language/index.d.ts b/src/constants/language/index.d.ts index e7b3d04e..f908b6b4 100644 --- a/src/constants/language/index.d.ts +++ b/src/constants/language/index.d.ts @@ -8,6 +8,7 @@ export type LanguageList = { de: LanguageType en: LanguageType fr: LanguageType + gd: LanguageType ja: LanguageType ko: LanguageType pl: LanguageType diff --git a/src/constants/language/index.js b/src/constants/language/index.js index 2659e012..451bc648 100644 --- a/src/constants/language/index.js +++ b/src/constants/language/index.js @@ -14,6 +14,11 @@ export default { key: 'fr', rfc4646: 'fr' }, + gd: { + name: 'Gàidhlig', + key: 'gd', + rfc4646: 'gd' + }, ja: { name: '日本語', key: 'ja', diff --git a/src/renderer/components/Preferences/Language.vue b/src/renderer/components/Preferences/Language.vue index e9954c14..7a322827 100644 --- a/src/renderer/components/Preferences/Language.vue +++ b/src/renderer/components/Preferences/Language.vue @@ -43,6 +43,7 @@ export default { Language.en, Language.es_es, Language.fr, + Language.gd, Language.id, Language.it, Language.ja,