-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Comments
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
bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Nov 21, 2024
@lewing I think this is by-design, but wanted to get you to answer here. |
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
Tagging subscribers to 'arch-wasm': @lewing |
Tagging subscribers to this area: @dotnet/area-system-globalization |
CC @ilonatommy |
4 tasks
ilonatommy
removed
the
untriaged
New issue has not been triaged by the area owner
label
Nov 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: