Support nn and nb locales

pull/4636/head
Chocobozzz 2021-12-13 17:06:44 +01:00
parent e2a1ccd174
commit 66175ae8b4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 14 additions and 1 deletions

View File

@ -124,6 +124,14 @@
"kab": { "kab": {
"translation": "src/locale/angular.kab.xlf", "translation": "src/locale/angular.kab.xlf",
"baseHref": "/client/kab/" "baseHref": "/client/kab/"
},
"nb": {
"translation": "src/locale/angular.nb-NO.xlf",
"baseHref": "/client/nb-NO/"
},
"nn": {
"translation": "src/locale/angular.nn.xlf",
"baseHref": "/client/nn/"
} }
} }
}, },

View File

@ -35,6 +35,8 @@ languages=(
["de"]="de-DE" ["de"]="de-DE"
["it"]="it-IT" ["it"]="it-IT"
["sq"]="sq" ["sq"]="sq"
["nn"]="nn"
["nb"]="nb-NO"
["kab"]="kab" ["kab"]="kab"
) )

View File

@ -8,7 +8,7 @@ cd client
npm run ng -- extract-i18n --out-file src/locale/angular.xlf npm run ng -- extract-i18n --out-file src/locale/angular.xlf
# Merge new translations in other language files # Merge new translations in other language files
node ./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" node ./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"
# Add our strings too # Add our strings too
cd ../ cd ../

View File

@ -28,6 +28,8 @@ export const I18N_LOCALES = {
'ru-RU': 'русский', 'ru-RU': 'русский',
'sq': 'Shqip', 'sq': 'Shqip',
'sv-SE': 'Svenska', 'sv-SE': 'Svenska',
'nn': 'norsk nynorsk',
'nb-NO': 'norsk bokmål',
'th-TH': 'ไทย', 'th-TH': 'ไทย',
'vi-VN': 'Tiếng Việt', 'vi-VN': 'Tiếng Việt',
'zh-Hans-CN': '简体中文(中国)', 'zh-Hans-CN': '简体中文(中国)',
@ -52,6 +54,7 @@ const I18N_LOCALE_ALIAS = {
'nl': 'nl-NL', 'nl': 'nl-NL',
'pl': 'pl-PL', 'pl': 'pl-PL',
'pt': 'pt-BR', 'pt': 'pt-BR',
'nb': 'nb-NO',
'ru': 'ru-RU', 'ru': 'ru-RU',
'sv': 'sv-SE', 'sv': 'sv-SE',
'th': 'th-TH', 'th': 'th-TH',