fixed language detection bug

- bug fix for languages with more than 2 characters #423
This commit is contained in:
amd64fox
2023-05-29 12:28:17 +03:00
parent da091028ca
commit d1a02464e7
+1 -1
View File
@@ -214,7 +214,7 @@ function Format-LanguageCode {
# Checking the long language code
if ($long_code -and $returnCode -NotIn $supportLanguages) {
$returnCode = $PSUICulture.Remove(2)
$returnCode = $returnCode -split "-" | Select-Object -First 1
}
# Checking the short language code
if ($returnCode -NotIn $supportLanguages) {