Add kab and vi locales
This commit is contained in:
parent
520745bfe8
commit
0bd558a0f9
5 changed files with 3235 additions and 4362 deletions
|
@ -108,6 +108,14 @@
|
|||
"it": {
|
||||
"translation": "src/locale/angular.it-IT.xlf",
|
||||
"baseHref": "/client/it-IT/"
|
||||
},
|
||||
"vi": {
|
||||
"translation": "src/locale/angular.vi-VN.xlf",
|
||||
"baseHref": "/client/vi-VN/"
|
||||
},
|
||||
"kab": {
|
||||
"translation": "src/locale/angular.kab.xlf",
|
||||
"baseHref": "/client/kab/"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -266,6 +274,12 @@
|
|||
},
|
||||
"it-IT": {
|
||||
"localize": [ "it" ]
|
||||
},
|
||||
"vi-VN": {
|
||||
"localize": [ "vi" ]
|
||||
},
|
||||
"kab": {
|
||||
"localize": [ "kab" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -354,6 +368,7 @@
|
|||
"it-IT",
|
||||
"ja-JP",
|
||||
"jbo",
|
||||
"kab",
|
||||
"ko-KR",
|
||||
"lt-LT",
|
||||
"nb-NO",
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -43,6 +43,10 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
|||
languages=(["hu"]="hu-HU")
|
||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then
|
||||
languages=(["ar"]="ar-001")
|
||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-vi" ]; then
|
||||
languages=(["vi"]="vi-VN")
|
||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-kab" ]; then
|
||||
languages=(["kab"]="kab")
|
||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-th" ]; then
|
||||
languages=(["th"]="th-TH")
|
||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-fi" ]; then
|
||||
|
@ -91,6 +95,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
|||
# Supported languages
|
||||
languages=(
|
||||
["ar"]="ar-001"
|
||||
["vi"]="vi-VN"
|
||||
["hu"]="hu-HU"
|
||||
["th"]="th-TH"
|
||||
["fi"]="fi-FI"
|
||||
|
@ -114,6 +119,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
|||
["eo"]="eo"
|
||||
["de"]="de-DE"
|
||||
["it"]="it-IT"
|
||||
["kab"]="kab"
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ export const I18N_LOCALES = {
|
|||
'hu-HU': 'magyar',
|
||||
'it-IT': 'Italiano',
|
||||
'ja-JP': '日本語',
|
||||
'kab': 'Taqbaylit',
|
||||
'nl-NL': 'Nederlands',
|
||||
'oc': 'Occitan',
|
||||
'pl-PL': 'Polski',
|
||||
|
@ -26,6 +27,7 @@ export const I18N_LOCALES = {
|
|||
'ru-RU': 'русский',
|
||||
'sv-SE': 'svenska',
|
||||
'th-TH': 'ไทย',
|
||||
'vi-VN': 'Tiếng Việt',
|
||||
'zh-Hans-CN': '简体中文(中国)',
|
||||
'zh-Hant-TW': '繁體中文(台灣)'
|
||||
}
|
||||
|
@ -41,20 +43,21 @@ const I18N_LOCALE_ALIAS = {
|
|||
'eu': 'eu-ES',
|
||||
'fi': 'fi-FI',
|
||||
'fr': 'fr-FR',
|
||||
'ja': 'ja-JP',
|
||||
'it': 'it-IT',
|
||||
'hu': 'hu-HU',
|
||||
'it': 'it-IT',
|
||||
'ja': 'ja-JP',
|
||||
'nl': 'nl-NL',
|
||||
'pl': 'pl-PL',
|
||||
'pt': 'pt-BR',
|
||||
'ru': 'ru-RU',
|
||||
'sv': 'sv-SE',
|
||||
'th': 'th-TH',
|
||||
'zh': 'zh-Hans-CN',
|
||||
'zh-Hans': 'zh-Hans-CN',
|
||||
'vi': 'vi-VN',
|
||||
'zh-CN': 'zh-Hans-CN',
|
||||
'zh-Hans': 'zh-Hans-CN',
|
||||
'zh-Hant': 'zh-Hant-TW',
|
||||
'zh-TW': 'zh-Hant-TW'
|
||||
'zh-TW': 'zh-Hant-TW',
|
||||
'zh': 'zh-Hans-CN'
|
||||
}
|
||||
|
||||
export const POSSIBLE_LOCALES = Object.keys(I18N_LOCALES)
|
||||
|
|
|
@ -30,5 +30,5 @@ Nothing to do here, Github will automatically send a webhook to Weblate that wil
|
|||
|
||||
* Add it to [/shared/models/i18n/i18n.ts](/shared/models/i18n/i18n.ts)
|
||||
* Add it to [/scripts/build/client.sh](/scripts/build/client.sh)
|
||||
* Add it to [/client/angular.json](/client/angular.json) in `xliffmergeOptions` section, then **pull** and **generate**
|
||||
* Add it to [/client/angular.json](/client/angular.json) (in multiple sections), then **pull** and **generate**
|
||||
* Build the application and check the new language correctly works
|
||||
|
|
Loading…
Reference in a new issue