-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor WASM CultureInfo names returns locale #84016
Comments
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsIs there an existing issue for this?
Describe the bugWhen using CultureInfo.NativeName, CultureInfo.DisplayName or CultureInfo.EnglishName I always get a two letter combination as output. Ex sv (SE), en (US), pt (BR). Actual output for the code below: Expected BehaviorThe correct beheavior for would be for sv-SE is to give the output: Native: svenska (Sverige) or for pt-BR Native: português (Brasil) Steps To ReproduceNew Blazor WASM project. In the Index.razor add:
Needs to be a WASM project. Works as it should in server app, console app etc. Get the same issue when running dotnet 6 Exceptions (if any)No response .NET Version7.0.100 Anything else?Get the same result in both Chrome and Edge, has language set to English (US) for the browsers.
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIs there an existing issue for this?
Describe the bugWhen using CultureInfo.NativeName, CultureInfo.DisplayName or CultureInfo.EnglishName I always get a two letter combination as output. Ex sv (SE), en (US), pt (BR). Actual output for the code below: Expected BehaviorThe correct beheavior for would be for sv-SE is to give the output: Native: svenska (Sverige) or for pt-BR Native: português (Brasil) Steps To ReproduceNew Blazor WASM project. In the Index.razor add:
Needs to be a WASM project. Works as it should in server app, console app etc. Get the same issue when running dotnet 6 Exceptions (if any)No response .NET Version7.0.100 Anything else?Get the same result in both Chrome and Edge, has language set to English (US) for the browsers.
|
cc @ilonatommy |
Thank you for the report, this is intentional to save space. I am closing as a duplicate of #44739. |
Is there an existing issue for this?
Describe the bug
When using CultureInfo.NativeName, CultureInfo.DisplayName or CultureInfo.EnglishName I always get a two letter combination as output. Ex sv (SE), en (US), pt (BR).
Actual output for the code below:
Native: sv (SE)
Name: sv-SE
Display: sv (SE)
English: sv (SE)
Expected Behavior
The correct beheavior for would be for sv-SE is to give the output:
Native: svenska (Sverige)
Name: sv-SE
Display: Swedish (Sweden)
English: Swedish (Sweden)
or for pt-BR
Native: português (Brasil)
Name: pt-BR
Display: Portuguese (Brazil)
English: Portuguese (Brazil)
Steps To Reproduce
New Blazor WASM project. In the Index.razor add:
Needs to be a WASM project. Works as it should in server app, console app etc.
Get the same issue when running dotnet 6
Exceptions (if any)
No response
.NET Version
7.0.100
Anything else?
Get the same result in both Chrome and Edge, has language set to English (US) for the browsers.
The text was updated successfully, but these errors were encountered: