diff options
author | surfdude29 <149612116+surfdude29@users.noreply.github.com> | 2024-12-02 17:28:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-02 17:28:11 +0000 |
commit | 770eeb59ca583c9bbc121790e0393195eda6b796 (patch) | |
tree | 0a270aa544f67d0719a723250bb6fff8c1eb428e | |
parent | 5f4a0f2881b9420f3a3f3fb6527352f58a99d9ea (diff) | |
download | voidsky-770eeb59ca583c9bbc121790e0393195eda6b796.tar.zst |
Add new languages to `CFBundleLocalizations` key (#6835)
* Order tweak in lingui.config.js * Add new languages to `CFBundleLocalizations` key * Order tweak in dates.ts * hyphen to en-dash * change two `zh` tags to use script rather than region * `zh_HK` ➡️ `yue-Hant` * `pt` ➡️ `pt-BR`
-rw-r--r-- | app.config.js | 13 | ||||
-rw-r--r-- | lingui.config.js | 2 | ||||
-rw-r--r-- | src/components/hooks/dates.ts | 2 | ||||
-rw-r--r-- | src/locale/languages.ts | 4 |
4 files changed, 13 insertions, 8 deletions
diff --git a/app.config.js b/app.config.js index fd754a50f..650191758 100644 --- a/app.config.js +++ b/app.config.js @@ -95,27 +95,32 @@ module.exports = function (config) { CFBundleSpokenName: 'Blue Sky', CFBundleLocalizations: [ 'en', + 'an', + 'ast', 'ca', 'de', 'es', 'fi', 'fr', 'ga', + 'gl', 'hi', 'hu', 'id', 'it', 'ja', 'ko', + 'nl', 'pl', - 'pt', + 'pt-BR', 'ru', 'th', 'tr', 'uk', - 'zh_CN', - 'zh_HK', - 'zh_TW', + 'vi', + 'yue-Hant', + 'zh-Hans', + 'zh-Hant', ], }, associatedDomains: ASSOCIATED_DOMAINS, diff --git a/lingui.config.js b/lingui.config.js index 418a65ac4..cbf4d1b48 100644 --- a/lingui.config.js +++ b/lingui.config.js @@ -2,8 +2,8 @@ module.exports = { locales: [ 'en', - 'ast', 'an', + 'ast', 'ca', 'de', 'en-GB', diff --git a/src/components/hooks/dates.ts b/src/components/hooks/dates.ts index ac50769f9..67283249e 100644 --- a/src/components/hooks/dates.ts +++ b/src/components/hooks/dates.ts @@ -44,8 +44,8 @@ import {useLanguagePrefs} from '#/state/preferences' */ const locales: Record<AppLanguage, Locale | undefined> = { en: undefined, - ast: undefined, an: undefined, + ast: undefined, ca, de, ['en-GB']: enGB, diff --git a/src/locale/languages.ts b/src/locale/languages.ts index 8e3c02d37..63f7e3e64 100644 --- a/src/locale/languages.ts +++ b/src/locale/languages.ts @@ -43,7 +43,7 @@ interface AppLanguageConfig { export const APP_LANGUAGES: AppLanguageConfig[] = [ {code2: AppLanguage.en, name: 'English'}, {code2: AppLanguage.an, name: 'Aragonés – Aragonese'}, - {code2: AppLanguage.ast, name: 'Asturianu - Asturian'}, + {code2: AppLanguage.ast, name: 'Asturianu – Asturian'}, {code2: AppLanguage.ca, name: 'Català – Catalan'}, {code2: AppLanguage.de, name: 'Deutsch – German'}, {code2: AppLanguage.en_GB, name: 'English (UK)'}, @@ -51,7 +51,7 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [ {code2: AppLanguage.fi, name: 'Suomi – Finnish'}, {code2: AppLanguage.fr, name: 'Français – French'}, {code2: AppLanguage.ga, name: 'Gaeilge – Irish'}, - {code2: AppLanguage.gl, name: 'Galego - Galician'}, + {code2: AppLanguage.gl, name: 'Galego – Galician'}, {code2: AppLanguage.hi, name: 'हिंदी – Hindi'}, {code2: AppLanguage.hu, name: 'magyar – Hungarian'}, {code2: AppLanguage.id, name: 'Bahasa Indonesia – Indonesian'}, |