I'm using localization in my blazor wasm application. But when loading and trying to display the name of the cultures, it does not show as intended. By following this link https://learn.microsoft.com/en-us/aspnet/core/blazor/globalization-localization?view=aspnetcore-6.0&pivots=server#localization and many other tutorials, the displayName property should display German or French for the culture (de-De) and (fr-Fr).
But instead when I retrieve the differents cultures like this : `
Cultures = CultureInfo.GetCultures(CultureTypes.NeutralCultures).ToList();
And then displays it like this :
@foreach(var c in Cultures){
<h1>@c.DisplayName</h1>
}
I get fr (Fr) or de (De) instead of the French/German I was expecting. Any ideas why it is not working?
PS: using .net 6.0 and VS 17.0.4