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": {
|
"it": {
|
||||||
"translation": "src/locale/angular.it-IT.xlf",
|
"translation": "src/locale/angular.it-IT.xlf",
|
||||||
"baseHref": "/client/it-IT/"
|
"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": {
|
"it-IT": {
|
||||||
"localize": [ "it" ]
|
"localize": [ "it" ]
|
||||||
|
},
|
||||||
|
"vi-VN": {
|
||||||
|
"localize": [ "vi" ]
|
||||||
|
},
|
||||||
|
"kab": {
|
||||||
|
"localize": [ "kab" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -354,6 +368,7 @@
|
||||||
"it-IT",
|
"it-IT",
|
||||||
"ja-JP",
|
"ja-JP",
|
||||||
"jbo",
|
"jbo",
|
||||||
|
"kab",
|
||||||
"ko-KR",
|
"ko-KR",
|
||||||
"lt-LT",
|
"lt-LT",
|
||||||
"nb-NO",
|
"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")
|
languages=(["hu"]="hu-HU")
|
||||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then
|
elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then
|
||||||
languages=(["ar"]="ar-001")
|
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
|
elif [ ! -z ${1+x} ] && [ "$1" == "--light-th" ]; then
|
||||||
languages=(["th"]="th-TH")
|
languages=(["th"]="th-TH")
|
||||||
elif [ ! -z ${1+x} ] && [ "$1" == "--light-fi" ]; then
|
elif [ ! -z ${1+x} ] && [ "$1" == "--light-fi" ]; then
|
||||||
|
@ -91,6 +95,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
||||||
# Supported languages
|
# Supported languages
|
||||||
languages=(
|
languages=(
|
||||||
["ar"]="ar-001"
|
["ar"]="ar-001"
|
||||||
|
["vi"]="vi-VN"
|
||||||
["hu"]="hu-HU"
|
["hu"]="hu-HU"
|
||||||
["th"]="th-TH"
|
["th"]="th-TH"
|
||||||
["fi"]="fi-FI"
|
["fi"]="fi-FI"
|
||||||
|
@ -114,6 +119,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
|
||||||
["eo"]="eo"
|
["eo"]="eo"
|
||||||
["de"]="de-DE"
|
["de"]="de-DE"
|
||||||
["it"]="it-IT"
|
["it"]="it-IT"
|
||||||
|
["kab"]="kab"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ export const I18N_LOCALES = {
|
||||||
'hu-HU': 'magyar',
|
'hu-HU': 'magyar',
|
||||||
'it-IT': 'Italiano',
|
'it-IT': 'Italiano',
|
||||||
'ja-JP': '日本語',
|
'ja-JP': '日本語',
|
||||||
|
'kab': 'Taqbaylit',
|
||||||
'nl-NL': 'Nederlands',
|
'nl-NL': 'Nederlands',
|
||||||
'oc': 'Occitan',
|
'oc': 'Occitan',
|
||||||
'pl-PL': 'Polski',
|
'pl-PL': 'Polski',
|
||||||
|
@ -26,6 +27,7 @@ export const I18N_LOCALES = {
|
||||||
'ru-RU': 'русский',
|
'ru-RU': 'русский',
|
||||||
'sv-SE': 'svenska',
|
'sv-SE': 'svenska',
|
||||||
'th-TH': 'ไทย',
|
'th-TH': 'ไทย',
|
||||||
|
'vi-VN': 'Tiếng Việt',
|
||||||
'zh-Hans-CN': '简体中文(中国)',
|
'zh-Hans-CN': '简体中文(中国)',
|
||||||
'zh-Hant-TW': '繁體中文(台灣)'
|
'zh-Hant-TW': '繁體中文(台灣)'
|
||||||
}
|
}
|
||||||
|
@ -41,20 +43,21 @@ const I18N_LOCALE_ALIAS = {
|
||||||
'eu': 'eu-ES',
|
'eu': 'eu-ES',
|
||||||
'fi': 'fi-FI',
|
'fi': 'fi-FI',
|
||||||
'fr': 'fr-FR',
|
'fr': 'fr-FR',
|
||||||
'ja': 'ja-JP',
|
|
||||||
'it': 'it-IT',
|
|
||||||
'hu': 'hu-HU',
|
'hu': 'hu-HU',
|
||||||
|
'it': 'it-IT',
|
||||||
|
'ja': 'ja-JP',
|
||||||
'nl': 'nl-NL',
|
'nl': 'nl-NL',
|
||||||
'pl': 'pl-PL',
|
'pl': 'pl-PL',
|
||||||
'pt': 'pt-BR',
|
'pt': 'pt-BR',
|
||||||
'ru': 'ru-RU',
|
'ru': 'ru-RU',
|
||||||
'sv': 'sv-SE',
|
'sv': 'sv-SE',
|
||||||
'th': 'th-TH',
|
'th': 'th-TH',
|
||||||
'zh': 'zh-Hans-CN',
|
'vi': 'vi-VN',
|
||||||
'zh-Hans': 'zh-Hans-CN',
|
|
||||||
'zh-CN': 'zh-Hans-CN',
|
'zh-CN': 'zh-Hans-CN',
|
||||||
|
'zh-Hans': 'zh-Hans-CN',
|
||||||
'zh-Hant': 'zh-Hant-TW',
|
'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)
|
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 [/shared/models/i18n/i18n.ts](/shared/models/i18n/i18n.ts)
|
||||||
* Add it to [/scripts/build/client.sh](/scripts/build/client.sh)
|
* 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
|
* Build the application and check the new language correctly works
|
||||||
|
|
Loading…
Reference in a new issue