Roc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
framework/src/Volo.Abp.Core/Volo/Abp/Localization/CultureHelper.cs
|
|
@ -57,8 +57,6 @@ public static class CultureHelper |
|
|
|
|
|
|
|
|
public static string GetBaseCultureName(string cultureName) |
|
|
public static string GetBaseCultureName(string cultureName) |
|
|
{ |
|
|
{ |
|
|
return cultureName.Contains("-") |
|
|
return new CultureInfo(cultureName).Parent.Name; |
|
|
? cultureName.Left(cultureName.IndexOf("-", StringComparison.Ordinal)) |
|
|
|
|
|
: cultureName; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|