mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 14:10:54 +10:00
fixed language detection bug
- bug fix for languages with more than 2 characters #423
This commit is contained in:
+1
-1
@@ -214,7 +214,7 @@ function Format-LanguageCode {
|
|||||||
|
|
||||||
# Checking the long language code
|
# Checking the long language code
|
||||||
if ($long_code -and $returnCode -NotIn $supportLanguages) {
|
if ($long_code -and $returnCode -NotIn $supportLanguages) {
|
||||||
$returnCode = $PSUICulture.Remove(2)
|
$returnCode = $returnCode -split "-" | Select-Object -First 1
|
||||||
}
|
}
|
||||||
# Checking the short language code
|
# Checking the short language code
|
||||||
if ($returnCode -NotIn $supportLanguages) {
|
if ($returnCode -NotIn $supportLanguages) {
|
||||||
|
|||||||
Reference in New Issue
Block a user