Skip to content

NativeName on CurrentCulture is shorten on Blazor WebAssembly .NET 5.0Β #44739

Closed
@christianzingg

Description

@christianzingg

The following Code produces different output comparing Blazor WebAssembly 3.2.0 and 5.0.0:

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
var native = Thread.CurrentThread.CurrentCulture.NativeName;
Console.WriteLine(native);

Blazor WebAssembly 5.0.0 --> "en (US)"
Blazor WebAssembly 3.2.0 --> "English (United States)"

PS: On normal ASP-Web application running with .NET 5.0 the output is "English (United States)"

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-System.Globalizationin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions