aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/angular.json8
-rwxr-xr-xscripts/build/client.sh2
-rwxr-xr-xscripts/i18n/update.sh2
-rw-r--r--shared/core-utils/i18n/i18n.ts3
4 files changed, 14 insertions, 1 deletions
diff --git a/client/angular.json b/client/angular.json
index 455c9fbde..6434c30cc 100644
--- a/client/angular.json
+++ b/client/angular.json
@@ -124,6 +124,14 @@
124 "kab": { 124 "kab": {
125 "translation": "src/locale/angular.kab.xlf", 125 "translation": "src/locale/angular.kab.xlf",
126 "baseHref": "/client/kab/" 126 "baseHref": "/client/kab/"
127 },
128 "nb": {
129 "translation": "src/locale/angular.nb-NO.xlf",
130 "baseHref": "/client/nb-NO/"
131 },
132 "nn": {
133 "translation": "src/locale/angular.nn.xlf",
134 "baseHref": "/client/nn/"
127 } 135 }
128 } 136 }
129 }, 137 },
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index e891b217c..bae91a2b6 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -35,6 +35,8 @@ languages=(
35 ["de"]="de-DE" 35 ["de"]="de-DE"
36 ["it"]="it-IT" 36 ["it"]="it-IT"
37 ["sq"]="sq" 37 ["sq"]="sq"
38 ["nn"]="nn"
39 ["nb"]="nb-NO"
38 ["kab"]="kab" 40 ["kab"]="kab"
39) 41)
40 42
diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh
index 0524c9e5d..4cf0d65b7 100755
--- a/scripts/i18n/update.sh
+++ b/scripts/i18n/update.sh
@@ -8,7 +8,7 @@ cd client
8npm run ng -- extract-i18n --out-file src/locale/angular.xlf 8npm run ng -- extract-i18n --out-file src/locale/angular.xlf
9 9
10# Merge new translations in other language files 10# Merge new translations in other language files
11node ./node_modules/.bin/xliffmerge -p ./.xliffmerge.json "ar" "ca-ES" "gl-ES" "cs-CZ" "da-DK" "de-DE" "el-GR" "en-GB" "en-US" "eo" "es-ES" "eu-ES" "fa-IR" "fi-FI" "fr-FR" "gd" "gl-ES" "hu-HU" "it-IT" "ja-JP" "jbo" "kab" "ko-KR" "lt-LT" "nb-NO" "nl-NL" "oc" "pl-PL" "pt-BR" "pt-PT" "ru-RU" "sk-SK" "sl-SI" "sv-SE" "ta" "th-TH" "tr-TR" "uk-UA" "vi-VN" "zh-Hans-CN" "zh-Hant-TW" 11node ./node_modules/.bin/xliffmerge -p ./.xliffmerge.json "ar" "ca-ES" "gl-ES" "cs-CZ" "da-DK" "de-DE" "el-GR" "en-GB" "en-US" "eo" "es-ES" "eu-ES" "fa-IR" "fi-FI" "fr-FR" "gd" "gl-ES" "hu-HU" "it-IT" "ja-JP" "jbo" "kab" "ko-KR" "lt-LT" "nb-NO" "nl-NL" "oc" "pl-PL" "pt-BR" "pt-PT" "ru-RU" "sk-SK" "sl-SI" "sv-SE" "ta" "th-TH" "tr-TR" "uk-UA" "vi-VN" "zh-Hans-CN" "zh-Hant-TW" "nn" "nb-NO"
12 12
13# Add our strings too 13# Add our strings too
14cd ../ 14cd ../
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts
index f27de20f1..ae6af8192 100644
--- a/shared/core-utils/i18n/i18n.ts
+++ b/shared/core-utils/i18n/i18n.ts
@@ -28,6 +28,8 @@ export const I18N_LOCALES = {
28 'ru-RU': 'русский', 28 'ru-RU': 'русский',
29 'sq': 'Shqip', 29 'sq': 'Shqip',
30 'sv-SE': 'Svenska', 30 'sv-SE': 'Svenska',
31 'nn': 'norsk nynorsk',
32 'nb-NO': 'norsk bokmål',
31 'th-TH': 'ไทย', 33 'th-TH': 'ไทย',
32 'vi-VN': 'Tiếng Việt', 34 'vi-VN': 'Tiếng Việt',
33 'zh-Hans-CN': '简体中文(中国)', 35 'zh-Hans-CN': '简体中文(中国)',
@@ -52,6 +54,7 @@ const I18N_LOCALE_ALIAS = {
52 'nl': 'nl-NL', 54 'nl': 'nl-NL',
53 'pl': 'pl-PL', 55 'pl': 'pl-PL',
54 'pt': 'pt-BR', 56 'pt': 'pt-BR',
57 'nb': 'nb-NO',
55 'ru': 'ru-RU', 58 'ru': 'ru-RU',
56 'sv': 'sv-SE', 59 'sv': 'sv-SE',
57 'th': 'th-TH', 60 'th': 'th-TH',