New answers tagged multilingual
0
votes
How to add language code in html tag
You can use the Sitecore context for this. The context is an object that contains information about the user, culture, language settings, and database settings.
So here is the different kind of ...
- 3,384
2
votes
Accepted
How to add language code in html tag
You need to add it to the layout file like.
<html lang="@Sitecore.Context.Language.CultureInfo.TwoLetterISOLanguageName">
Refer: https://github.com/Sitecore/Habitat/blob/master/src/...
- 951
Top 50 recent answers are included
Related Tags
multilingual × 194language-fallback × 24
sxa × 17
multisite × 17
content-editor × 13
sitecore-client × 9
content-search × 9
versions × 7
media-library × 6
link-manager × 6
urls × 5
jss × 4
wffm × 4
sitecore-forms × 4
publishing × 4
glass-mapper × 4
azure-search × 4
templates × 4
best-practices × 4
sitecore-query × 4
cookies × 4
solr × 3
experience-editor × 3
sitecore-api × 3
configuration × 3