Description
This was originally reported here: #70028. That issue has been closed, but the problem persists. CultureInfo.DisplayName does not return the localized name. I have enabled HybridGlobalization
Reproduction Steps
new CultureInfo("it-IT").DisplayName
Expected behavior
This should output "Italienisch (Italien)" when running on a device that has German set as primary device language.
Actual behavior
It outputs "it (IT)".
Regression?
No response
Known Workarounds
I can use CultureInfo.EnglishName but this gives me the English name and not the localized name
Configuration
.NET 8 on iOS 17 (simulator + physical device)
<HybridGlobalization>true</HybridGlobalization> in .csproj
Other information
No response
Description
This was originally reported here: #70028. That issue has been closed, but the problem persists.
CultureInfo.DisplayNamedoes not return the localized name. I have enabledHybridGlobalizationReproduction Steps
new CultureInfo("it-IT").DisplayNameExpected behavior
This should output "Italienisch (Italien)" when running on a device that has German set as primary device language.
Actual behavior
It outputs "it (IT)".
Regression?
No response
Known Workarounds
I can use
CultureInfo.EnglishNamebut this gives me the English name and not the localized nameConfiguration
.NET 8 on iOS 17 (simulator + physical device)
<HybridGlobalization>true</HybridGlobalization>in .csprojOther information
No response