-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
Milestone
Description
This would:
-
Mirror the API for
.Site.LanguageCode
-
Allow you to do this on monolingual and multilingual sites
<html lang="{{ site.LanguageCode }}" dir="{{ site.LanguageDirection }}">
To me, this is the basic configuration for a language:
[languages.en]
languageCode = 'en-US'
languageDirection = 'ltr'
languageName = 'English'
weight = 1
But the way you access the values is (conceptually) inconsistent:
Key | Code | Notes |
---|---|---|
languageCode |
{{ .Site.LanguageCode }} |
{{ .Site.Language.LanguageCode }} does not work |
languageDirection |
{{ .Site.Language.LanguageDirection }} |
|
languageName |
{{ .Site.Language.LanguageName }} |
|
weight |
{{ .Site.Language.Weight }} |
Not sure why this is exposed |
techmagus