diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-30 11:35:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 11:35:29 -0500 |
commit | ed5a88d9d807c471a548bd9f23e0dcbf60c6cf6e (patch) | |
tree | ba8c469b64de1b0dc8bbe51a5fa698e5d21df4f8 /src/locale/languages.ts | |
parent | 48844aa4c7690e1e89122e016a3b1ceadca2fdc7 (diff) | |
download | voidsky-ed5a88d9d807c471a548bd9f23e0dcbf60c6cf6e.tar.zst |
[APP-718] Improvements and fixes to language handling (#931)
* Add locale helpers for narrowing languages * Add a translate link to posts in a different language * Update language filtering to use narrowing when multiple declared * Fix a few more RTL layout cases * Fix types
Diffstat (limited to 'src/locale/languages.ts')
-rw-r--r-- | src/locale/languages.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/locale/languages.ts b/src/locale/languages.ts index 269e2fa9a..3983c213f 100644 --- a/src/locale/languages.ts +++ b/src/locale/languages.ts @@ -555,3 +555,7 @@ export const LANGUAGES_MAP_CODE2 = Object.fromEntries( export const LANGUAGES_MAP_CODE3 = Object.fromEntries( LANGUAGES.map(lang => [lang.code3, lang]), ) +// some additional manual mappings (not clear if these should be in the "official" mappings) +if (LANGUAGES_MAP_CODE2.fa) { + LANGUAGES_MAP_CODE3.pes = LANGUAGES_MAP_CODE2.fa +} |