New answers tagged

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/...

Top 50 recent answers are included