aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build/client.sh1
-rw-r--r--shared/models/i18n/i18n.ts42
2 files changed, 24 insertions, 19 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index d95bb9574..ee647bb99 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -42,6 +42,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
42 else 42 else
43 # Supported languages 43 # Supported languages
44 languages=( 44 languages=(
45 "hu-HU" "th-TH"
45 "fi-FI" "nl-NL" "gd" "el-GR" "es-ES" "oc" "pt-BR" "pt-PT" "sv-SE" "pl-PL" "ru-RU" "zh-Hans-CN" "zh-Hant-TW" 46 "fi-FI" "nl-NL" "gd" "el-GR" "es-ES" "oc" "pt-BR" "pt-PT" "sv-SE" "pl-PL" "ru-RU" "zh-Hans-CN" "zh-Hant-TW"
46 "fr-FR" "ja-JP" "eu-ES" "ca-ES" "cs-CZ" "eo" "de-DE" "it-IT" 47 "fr-FR" "ja-JP" "eu-ES" "ca-ES" "cs-CZ" "eo" "de-DE" "it-IT"
47 ) 48 )
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts
index 9ae175df9..ff367b279 100644
--- a/shared/models/i18n/i18n.ts
+++ b/shared/models/i18n/i18n.ts
@@ -1,44 +1,48 @@
1export const LOCALE_FILES = [ 'player', 'server' ] 1export const LOCALE_FILES = [ 'player', 'server' ]
2 2
3export const I18N_LOCALES = { 3export const I18N_LOCALES = {
4 'en-US': 'English',
5 'fr-FR': 'Français',
6 'ja-JP': '日本語',
7 'eu-ES': 'Euskara',
8 'ca-ES': 'Català', 4 'ca-ES': 'Català',
9 'cs-CZ': 'Čeština', 5 'cs-CZ': 'Čeština',
10 'eo': 'Esperanto',
11 'el-GR': 'ελληνικά',
12 'de-DE': 'Deutsch', 6 'de-DE': 'Deutsch',
7 'el-GR': 'ελληνικά',
8 'en-US': 'English',
9 'eo': 'Esperanto',
10 'es-ES': 'Español',
11 'eu-ES': 'Euskara',
12 'fi-FI': 'suomi',
13 'fr-FR': 'Français',
14 'gd': 'Gàidhlig',
15 'hu-HU': 'magyar',
13 'it-IT': 'Italiano', 16 'it-IT': 'Italiano',
17 'ja-JP': '日本語',
14 'nl-NL': 'Nederlands', 18 'nl-NL': 'Nederlands',
15 'es-ES': 'Español',
16 'oc': 'Occitan', 19 'oc': 'Occitan',
17 'gd': 'Gàidhlig', 20 'pl-PL': 'Polski',
18 'zh-Hant-TW': '繁體中文(台灣)',
19 'pt-BR': 'Português (Brasil)', 21 'pt-BR': 'Português (Brasil)',
20 'pt-PT': 'Português (Portugal)', 22 'pt-PT': 'Português (Portugal)',
21 'sv-SE': 'svenska',
22 'pl-PL': 'Polski',
23 'fi-FI': 'suomi',
24 'ru-RU': 'русский', 23 'ru-RU': 'русский',
25 'zh-Hans-CN': '简体中文(中国)' 24 'sv-SE': 'svenska',
25 'th-TH': 'ไทย',
26 'zh-Hans-CN': '简体中文(中国)',
27 'zh-Hant-TW': '繁體中文(台灣)'
26} 28}
27 29
28const I18N_LOCALE_ALIAS = { 30const I18N_LOCALE_ALIAS = {
29 'en': 'en-US',
30 'fr': 'fr-FR',
31 'eu': 'eu-ES',
32 'ca': 'ca-ES', 31 'ca': 'ca-ES',
33 'cs': 'cs-CZ', 32 'cs': 'cs-CZ',
34 'de': 'de-DE', 33 'de': 'de-DE',
34 'en': 'en-US',
35 'es': 'es-ES', 35 'es': 'es-ES',
36 'pt': 'pt-PT', 36 'eu': 'eu-ES',
37 'fi': 'fi-FI', 37 'fi': 'fi-FI',
38 'sv': 'sv-SE', 38 'fr': 'fr-FR',
39 'hu': 'hu-HU',
40 'nl': 'nl-NL',
39 'pl': 'pl-PL', 41 'pl': 'pl-PL',
42 'pt': 'pt-PT',
40 'ru': 'ru-RU', 43 'ru': 'ru-RU',
41 'nl': 'nl-NL', 44 'sv': 'sv-SE',
45 'th': 'th-TH',
42 'zh': 'zh-Hans-CN', 46 'zh': 'zh-Hans-CN',
43 'zh-CN': 'zh-Hans-CN', 47 'zh-CN': 'zh-Hans-CN',
44 'zh-TW': 'zh-Hant-TW' 48 'zh-TW': 'zh-Hant-TW'