about summary refs log tree commit diff
path: root/src/locale/helpers.ts
diff options
context:
space:
mode:
authorJuan Pablo Martínez <jpmart@unizar.es>2024-11-27 04:06:47 +0100
committerGitHub <noreply@github.com>2024-11-26 19:06:47 -0800
commit5929c2678cee75196c6c12abc1e0f7a1cdfa6f4f (patch)
tree42ba044e5cddf896882403b853d24cd5aca9d096 /src/locale/helpers.ts
parent8cbe68306de3ed9169ca3fded5b8285e545d39bb (diff)
downloadvoidsky-5929c2678cee75196c6c12abc1e0f7a1cdfa6f4f.tar.zst
Add Aragonese language ('an') support and l10n (#6638)
* Update languages.ts

* Update i18n.web.ts

* Update i18n.ts

* Update helpers.ts

* Create messages.po

* Update lingui.config.js

* Update dates.ts

* Add files via upload

* Update src/components/hooks/dates.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* Update src/components/hooks/dates.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* Update i18n.ts

* Update messages.po

* Update src/locale/i18n.ts

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

---------

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r--src/locale/helpers.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts
index c1842b820..5bad732f1 100644
--- a/src/locale/helpers.ts
+++ b/src/locale/helpers.ts
@@ -119,6 +119,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
     switch (fixLegacyLanguageCode(lang)) {
       case 'en':
         return AppLanguage.en
+      case 'an':
+        return AppLanguage.an
       case 'ca':
         return AppLanguage.ca
       case 'de':