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 g11n/i18n support #51181

Closed
1 task done
davhdavh opened this issue Oct 6, 2023 · 3 comments
Closed
1 task done

Blazor g11n/i18n support #51181

davhdavh opened this issue Oct 6, 2023 · 3 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Pillar: Technical Debt Status: Resolved

Comments

@davhdavh
Copy link
Contributor

davhdavh commented Oct 6, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I just tried out Blazor in .net 8, and I can see it is still mostly developed by people that live in USA and never has to make multi language apps👎

  1. dotnet new blazor => default template hard codes <html lang=en>👎
  2. dotnet new blazor --use-server true --use-wasm true => Add code Server side to fetch lang from db and set it => wasm reverts to browser language👎
  3. Set CultureInfo.DefaultThreadCurrentCulture = new("da-DK") =>
    a. <html lang=en> still remains👎
    b. <meta http-equiv="content-language" content=""> not added
    c. <div id=app> lang attribute not added
    So how is browser/search engine going to figure out I show a different language than en?👎
  4. Want dataannotations translations? Install nuget package with language support for my new language? Ofcourse not 👎

Expected Behavior

Out of the box support for the most trivial app that supports a handful of cultures and supports loading that value from somewhere.

IMHO, the default template should support multiple languages and all the default texts using resx files instead of hard coded values.

Steps To Reproduce

see above

Exceptions (if any)

No response

.NET Version

8.0-rc.1

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Oct 6, 2023
@mkArtakMSFT mkArtakMSFT added bug This issue describes a behavior which is not expected - a bug. feature-templates labels Oct 9, 2023
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Oct 9, 2023
@ghost
Copy link

ghost commented Oct 9, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@mkArtakMSFT mkArtakMSFT modified the milestones: Backlog, BlazorPlanning Nov 5, 2023
@mkArtakMSFT mkArtakMSFT added enhancement This issue represents an ask for new feature or an enhancement to an existing one and removed bug This issue describes a behavior which is not expected - a bug. labels Dec 18, 2023
@ghost
Copy link

ghost commented Dec 18, 2023

Thanks for contacting us.

We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@mkArtakMSFT
Copy link
Member

Thanks for contacting us. The main thing from this list that we plan to do is already tracked as part of #26941. As for the rest, these are not things that we plan to do in the near future.

@mkArtakMSFT mkArtakMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Jan 4, 2024
@ghost ghost added the Status: Resolved label Jan 4, 2024
@ghost ghost locked as resolved and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Pillar: Technical Debt Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants