question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sapper template: lang attribute of hmtl tag in template.html

See original GitHub issue

Hi. 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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Vakil-Parthcommented, Jul 17, 2020

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.

0reactions
tidiviewcommented, Jun 13, 2020

that is my question. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found