Skip to content
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

Globilization country list only returns 2 characters and not the full name #110035

Open
vsfeedback opened this issue Nov 21, 2024 · 4 comments
Open
Labels
arch-wasm WebAssembly architecture area-System.Globalization untriaged New issue has not been triaged by the area owner

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


I am using .Net 8 Visual Studio Version 17.11.5 and Blazor webassembly console app.
Using similar code in .net framword 4.7 I do get the full country name but not in my application

The output produced:

de de deu DEU de de
de-DE de deu DEU de (DE) de (DE)
en en eng ENU en en

The code I am using

@using System.Globalization;
Console.WriteLine("CULTURE ISO ISO WIN DISPLAYNAME ENGLISHNAME");
foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures))
{
Console.Write("{0,-7}", ci.Name);
Console.Write(" {0,-3}", ci.TwoLetterISOLanguageName);
Console.Write(" {0,-3}", ci.ThreeLetterISOLanguageName);
Console.Write(" {0,-3}", ci.ThreeLetterWindowsLanguageName);
Console.Write(" {0,-40}", ci.DisplayName);
Console.WriteLine(" {0,-40}", ci.EnglishName);
}

The sample code from https://learn.microsoft.com/en-us/dotnet/api/system.globalization.culturetypes?view=net-8.0
returns the full name
CULTURE ISO ISO WIN DISPLAYNAME ENGLISHNAME
ar ar ara ARA Arabic Arabic
bg bg bul BGR Bulgarian Bulgarian


Original Comments

Feedback Bot on 11/10/2024, 05:32 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/aspnetcore Nov 21, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 21, 2024
@mkArtakMSFT
Copy link
Member

@lewing I think this is by-design, but wanted to get you to answer here.

@teo-tsirpanis teo-tsirpanis added arch-wasm WebAssembly architecture area-System.Globalization and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 21, 2024
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-globalization
See info in area-owners.md if you want to be subscribed.

@tarekgh
Copy link
Member

tarekgh commented Nov 21, 2024

CC @ilonatommy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Globalization untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants