Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.3k stars 533 forks source link

Blazorise WASM project template localization dropdown shows the language code, not the language name #4873

Open JHorvath-MaxetaTech opened 1 year ago

JHorvath-MaxetaTech commented 1 year ago

Describe the bug Blazorise WASM project template localization dropdown shows the language code, not the language name

To Reproduce Steps to reproduce the behavior:

  1. Create a Blazorise Project using: dotnet new blazorise -bh WebAssembly
  2. Run the project with: dotnet run
  3. Click on the localization dropdown

Expected behavior The list should be a list of languages, not a list of language codes (like the -bh Server project option).

Screenshots image

stsrki commented 1 year ago

This problem happens because Blazor WASM doesn't have access to the full culture info as it has in Blazor Server.

Source: https://stackoverflow.com/questions/70710924/change-culture-info-blazor-web-assembly-display-name-issue


I guess the only other way is for us to make a new localization dictionary of all culture names and then look it up when needed. 🤔