diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-13 16:25:53 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-13 16:25:53 +0100 |
commit | 4c61660a0ab6224079c67d8282b282772a0772e4 (patch) | |
tree | b7f350fa0fec326187829177d77da283ae3a6049 /shared/core-utils | |
parent | f12c18db513ba3d84ee465c2338c5283be7fab10 (diff) | |
download | PeerTube-4c61660a0ab6224079c67d8282b282772a0772e4.tar.gz PeerTube-4c61660a0ab6224079c67d8282b282772a0772e4.tar.zst PeerTube-4c61660a0ab6224079c67d8282b282772a0772e4.zip |
Add uk-UA locale support
Diffstat (limited to 'shared/core-utils')
-rw-r--r-- | shared/core-utils/i18n/i18n.ts | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts index d01493cc2..6b9a40d1a 100644 --- a/shared/core-utils/i18n/i18n.ts +++ b/shared/core-utils/i18n/i18n.ts | |||
@@ -4,6 +4,7 @@ export const I18N_LOCALES = { | |||
4 | // Always first to avoid issues when using express acceptLanguages function when no accept language header is set | 4 | // Always first to avoid issues when using express acceptLanguages function when no accept language header is set |
5 | 'en-US': 'English', | 5 | 'en-US': 'English', |
6 | 6 | ||
7 | // Keep it alphabetically sorted | ||
7 | 'ar': 'العربية', | 8 | 'ar': 'العربية', |
8 | 'ca-ES': 'Català', | 9 | 'ca-ES': 'Català', |
9 | 'cs-CZ': 'Čeština', | 10 | 'cs-CZ': 'Čeština', |
@@ -12,18 +13,20 @@ export const I18N_LOCALES = { | |||
12 | 'eo': 'Esperanto', | 13 | 'eo': 'Esperanto', |
13 | 'es-ES': 'Español', | 14 | 'es-ES': 'Español', |
14 | 'eu-ES': 'Euskara', | 15 | 'eu-ES': 'Euskara', |
16 | 'fa-IR': 'فارسی', | ||
15 | 'fi-FI': 'suomi', | 17 | 'fi-FI': 'suomi', |
16 | 'fr-FR': 'Français', | 18 | 'fr-FR': 'Français', |
17 | 'gd': 'Gàidhlig', | 19 | 'gd': 'Gàidhlig', |
18 | 'gl-ES': 'galego', | 20 | 'gl-ES': 'galego', |
19 | 'hr': 'hrvatski', | 21 | 'hr': 'hrvatski', |
20 | 'hu-HU': 'magyar', | 22 | 'hu-HU': 'magyar', |
21 | 'fa-IR': 'فارسی', | 23 | 'is': 'Íslenska', |
22 | 'it-IT': 'Italiano', | 24 | 'it-IT': 'Italiano', |
23 | 'ja-JP': '日本語', | 25 | 'ja-JP': '日本語', |
24 | 'kab': 'Taqbaylit', | 26 | 'kab': 'Taqbaylit', |
25 | 'is': 'Íslenska', | 27 | 'nb-NO': 'norsk bokmål', |
26 | 'nl-NL': 'Nederlands', | 28 | 'nl-NL': 'Nederlands', |
29 | 'nn': 'norsk nynorsk', | ||
27 | 'oc': 'Occitan', | 30 | 'oc': 'Occitan', |
28 | 'pl-PL': 'Polski', | 31 | 'pl-PL': 'Polski', |
29 | 'pt-BR': 'Português (Brasil)', | 32 | 'pt-BR': 'Português (Brasil)', |
@@ -31,15 +34,15 @@ export const I18N_LOCALES = { | |||
31 | 'ru-RU': 'русский', | 34 | 'ru-RU': 'русский', |
32 | 'sq': 'Shqip', | 35 | 'sq': 'Shqip', |
33 | 'sv-SE': 'Svenska', | 36 | 'sv-SE': 'Svenska', |
34 | 'nn': 'norsk nynorsk', | ||
35 | 'nb-NO': 'norsk bokmål', | ||
36 | 'th-TH': 'ไทย', | 37 | 'th-TH': 'ไทย', |
37 | 'vi-VN': 'Tiếng Việt', | ||
38 | 'tok': 'Toki Pona', | 38 | 'tok': 'Toki Pona', |
39 | 'uk-UA': 'украї́нська мо́ва', | ||
40 | 'vi-VN': 'Tiếng Việt', | ||
39 | 'zh-Hans-CN': '简体中文(中国)', | 41 | 'zh-Hans-CN': '简体中文(中国)', |
40 | 'zh-Hant-TW': '繁體中文(台灣)' | 42 | 'zh-Hant-TW': '繁體中文(台灣)' |
41 | } | 43 | } |
42 | 44 | ||
45 | // Keep it alphabetically sorted | ||
43 | const I18N_LOCALE_ALIAS = { | 46 | const I18N_LOCALE_ALIAS = { |
44 | 'ar-001': 'ar', | 47 | 'ar-001': 'ar', |
45 | 'ca': 'ca-ES', | 48 | 'ca': 'ca-ES', |
@@ -49,20 +52,21 @@ const I18N_LOCALE_ALIAS = { | |||
49 | 'en': 'en-US', | 52 | 'en': 'en-US', |
50 | 'es': 'es-ES', | 53 | 'es': 'es-ES', |
51 | 'eu': 'eu-ES', | 54 | 'eu': 'eu-ES', |
52 | 'fi': 'fi-FI', | ||
53 | 'gl': 'gl-ES', | ||
54 | 'fa': 'fa-IR', | 55 | 'fa': 'fa-IR', |
56 | 'fi': 'fi-FI', | ||
55 | 'fr': 'fr-FR', | 57 | 'fr': 'fr-FR', |
58 | 'gl': 'gl-ES', | ||
56 | 'hu': 'hu-HU', | 59 | 'hu': 'hu-HU', |
57 | 'it': 'it-IT', | 60 | 'it': 'it-IT', |
58 | 'ja': 'ja-JP', | 61 | 'ja': 'ja-JP', |
62 | 'nb': 'nb-NO', | ||
59 | 'nl': 'nl-NL', | 63 | 'nl': 'nl-NL', |
60 | 'pl': 'pl-PL', | 64 | 'pl': 'pl-PL', |
61 | 'pt': 'pt-BR', | 65 | 'pt': 'pt-BR', |
62 | 'nb': 'nb-NO', | ||
63 | 'ru': 'ru-RU', | 66 | 'ru': 'ru-RU', |
64 | 'sv': 'sv-SE', | 67 | 'sv': 'sv-SE', |
65 | 'th': 'th-TH', | 68 | 'th': 'th-TH', |
69 | 'uk': 'uk-UA', | ||
66 | 'vi': 'vi-VN', | 70 | 'vi': 'vi-VN', |
67 | 'zh-CN': 'zh-Hans-CN', | 71 | 'zh-CN': 'zh-Hans-CN', |
68 | 'zh-Hans': 'zh-Hans-CN', | 72 | 'zh-Hans': 'zh-Hans-CN', |