Add languageDirection to language configuration

Fixes #6550
This commit is contained in:
Tan Yuanhong
2020-03-10 17:10:58 +08:00
committed by GitHub
parent 5b4659fa0b
commit 5914f91b6c
3 changed files with 12 additions and 4 deletions

View File

@@ -185,6 +185,8 @@ func toSortedLanguages(cfg config.Provider, l map[string]interface{}) (Languages
language.Title = cast.ToString(v)
case "languagename":
language.LanguageName = cast.ToString(v)
case "languagedirection":
language.LanguageDirection = cast.ToString(v)
case "weight":
language.Weight = cast.ToInt(v)
case "contentdir":