Skip to content

[iOS] CultureInfo.DisplayName only shows abbreviation #95427

@tipa

Description

@tipa

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions