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

Blazor RegionInfo delivers wrong NativeName #53880

Closed
JohnFasc opened this issue Jun 8, 2021 · 5 comments
Closed

Blazor RegionInfo delivers wrong NativeName #53880

JohnFasc opened this issue Jun 8, 2021 · 5 comments
Assignees
Labels
Milestone

Comments

@JohnFasc
Copy link

JohnFasc commented Jun 8, 2021

Description:

We wanted to get the region infos for our blazor component over the LCID and the native name delivers always the country code and not the native country name.

CultureInfo[] cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
        cultureInfos.ToList().ForEach(c => 
        {
            RegionInfo regionInfo = new RegionInfo(c.LCID);
            if(!cultureList.Contains(regionInfo.NativeName))
            {
                cultureList.Add(regionInfo.NativeName);
                Console.WriteLine(regionInfo.NativeName);
            }
});

Output:

DE
US
ES
FR
IT

Further technical details

  • net5.0
  • Blazor
  • VS Code
@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/aspnetcore Jun 8, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Globalization untriaged New issue has not been triaged by the area owner labels Jun 8, 2021
@ghost
Copy link

ghost commented Jun 8, 2021

Tagging subscribers to this area: @tarekgh, @safern
See info in area-owners.md if you want to be subscribed.

Issue Details

Description:

We wanted to get the region infos for our blazor component over the LCID and the native name delivers always the country code and not the native country name.

CultureInfo[] cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
        cultureInfos.ToList().ForEach(c => 
        {
            RegionInfo regionInfo = new RegionInfo(c.LCID);
            if(!cultureList.Contains(regionInfo.NativeName))
            {
                cultureList.Add(regionInfo.NativeName);
                Console.WriteLine(regionInfo.NativeName);
            }
});

Output:

DE
US
ES
FR
IT

Further technical details

  • net5.0
  • Blazor
  • VS Code
Author: JohnFasc
Assignees: -
Labels:

area-System.Globalization, untriaged

Milestone: -

@mkArtakMSFT
Copy link
Member

mkArtakMSFT commented Jun 8, 2021

@lewing FYI

@tarekgh tarekgh added arch-wasm WebAssembly architecture and removed untriaged New issue has not been triaged by the area owner labels Jun 8, 2021
@ghost
Copy link

ghost commented Jun 8, 2021

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

Issue Details

Description:

We wanted to get the region infos for our blazor component over the LCID and the native name delivers always the country code and not the native country name.

CultureInfo[] cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
        cultureInfos.ToList().ForEach(c => 
        {
            RegionInfo regionInfo = new RegionInfo(c.LCID);
            if(!cultureList.Contains(regionInfo.NativeName))
            {
                cultureList.Add(regionInfo.NativeName);
                Console.WriteLine(regionInfo.NativeName);
            }
});

Output:

DE
US
ES
FR
IT

Further technical details

  • net5.0
  • Blazor
  • VS Code
Author: JohnFasc
Assignees: -
Labels:

arch-wasm, area-System.Globalization

Milestone: -

@tarekgh tarekgh added this to the 6.0.0 milestone Jun 8, 2021
@jkotas jkotas changed the title Balzor RegionInfo delivers wrong NativeName Blazor RegionInfo delivers wrong NativeName Jun 8, 2021
@lewing
Copy link
Member

lewing commented Jun 17, 2021

This data is definitely being removed from the base icu data.

@maryamariyan maryamariyan modified the milestones: 6.0.0, 7.0.0 Jul 23, 2021
@lewing lewing modified the milestones: 6.0.0, 7.0.0 Jul 31, 2021
@ilonatommy ilonatommy self-assigned this Jun 16, 2022
@ilonatommy
Copy link
Member

Duplicate of #44739.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants