You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will suggest we do it the other way, we (conceptually) move LanuageCode down to Language. It should be easy to make the old work, but that field belongs on Language-- the only reason it's not there is because it came before ...
That will also make the smallest change set and keep some values in Language.
We should also remove (deprecate) weight
deprecate weight.
move languageCode => language (but keep site.LanguageCode as an alias)
This would:
Mirror the API for
.Site.LanguageCode
Allow you to do this on monolingual and multilingual sites
To me, this is the basic configuration for a language:
But the way you access the values is (conceptually) inconsistent:
languageCode
{{ .Site.LanguageCode }}
{{ .Site.Language.LanguageCode }}
does not worklanguageDirection
{{ .Site.Language.LanguageDirection }}
languageName
{{ .Site.Language.LanguageName }}
weight
{{ .Site.Language.Weight }}
The text was updated successfully, but these errors were encountered: