Sapper template: lang attribute of hmtl tag in template.html
See original GitHub issueHi.
How do you plan to deal with the attribute lang=en
in the html
tag of template.html
?
It needs to be reflecting a locale, doesn’t it?
(made also another issue in the sapper template repo)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
sapper-template/template.html at master - GitHub
Starter template for Sapper apps. Contribute to sveltejs/sapper-template development by creating an account on GitHub.
Read more >Docs • Sapper
src/template.html. This file is a template for responses from the server. Sapper will inject content that replaces the following tags: %sapper.
Read more >How to set html lang attribute in Django template?
I figured it out. The get_current_language tag contains the preferred language of the user. {% load i18n ...
Read more >Using the HTML lang attribute - TPGi
The HTML lang attribute is used to identify the language of text content on ... The lang attribute takes an ISO language code...
Read more >Declaring language in HTML - W3C
Always use a language attribute on the html tag to declare the default language of the text in the page. This is inherited...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Does any one have solution for this? I need to set lang attribute in ssr. https://github.com/kaisermann/svelte-i18n/blob/master/src/runtime/stores/locale.ts#L56 this does not reflect initial language set from ssr.
that is my question. Thanks.