Update Serbian translations (Cyrillic & Latin) (#800)

* Improve Serbian cyrillic translation

* Add Serbian latin translation

* Update Serbian cyrillic language code detection
This commit is contained in:
Radoš Milićev
2025-12-04 20:51:24 +01:00
committed by GitHub
parent 9cf696b876
commit 9ea3b4082a
3 changed files with 68 additions and 14 deletions

View File

@@ -130,7 +130,7 @@ function Format-LanguageCode {
$supportLanguages = @(
'be', 'bn', 'cs', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fil', 'fr', 'hi', 'hu',
'id', 'it', 'ja', 'ka', 'ko', 'lv', 'pl', 'pt', 'ro', 'ru', 'sk', 'sr',
'id', 'it', 'ja', 'ka', 'ko', 'lv', 'pl', 'pt', 'ro', 'ru', 'sk', 'sr', 'sr-Latn',
'sv', 'ta', 'tr', 'ua', 'vi', 'zh', 'zh-TW'
)
@@ -232,10 +232,14 @@ function Format-LanguageCode {
$returnCode = 'sk'
break
}
'^sr' {
'^(sr|sr-Cyrl)$' {
$returnCode = 'sr'
break
}
'^sr-Latn' {
$returnCode = 'sr-Latn'
break
}
'^sv' {
$returnCode = 'sv'
break