mirror of https://github.com/Chocobozzz/PeerTube
Support nn and nb locales
parent
e2a1ccd174
commit
66175ae8b4
|
@ -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/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 ../
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue