1
0
Fork 0

Support nn and nb locales

This commit is contained in:
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": {
"translation": "src/locale/angular.kab.xlf",
"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"
["it"]="it-IT"
["sq"]="sq"
["nn"]="nn"
["nb"]="nb-NO"
["kab"]="kab"
)

View file

@ -8,7 +8,7 @@ cd client
npm run ng -- extract-i18n --out-file src/locale/angular.xlf
# 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
cd ../

View file

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