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

Change Html Lang tag #3

Open
mysteryx93 opened this issue May 19, 2020 · 3 comments
Open

Change Html Lang tag #3

mysteryx93 opened this issue May 19, 2020 · 3 comments

Comments

@mysteryx93
Copy link

Another tag that would be useful to change is

<html lang="en">
@jsakamoto
Copy link
Owner

@mysteryx93

In my opinion, it is not a good idea to support the change lang tag by this component/library.

If I implement this case, I will implement it on standard ASP.NET Core server-side technologies, such as Razor pages (ex. _Host.cshtml)

Why do you think that you need to change lang tag by this component/library?

@mysteryx93
Copy link
Author

If I have pages in different languages on the website, how can the page tell the _Host its language?

@jsakamoto
Copy link
Owner

@mysteryx93

It is not a Blazor matter. It is a general topic of ASP.NET Razor Pages programming.

The "lang" attribute in the "html" tag is important for only the server-side rendering scenario.
Changing the "lang" attribute at the client-side is no make sense.

Anyway, I wrote and published a sample code.

Please visit https://github.com/sample-by-jsakamoto/ASPNETCore-RazorPages-RenderLangAttribInHtmlTag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants