diff options
author | Tan Yuanhong <[email protected]> | 2020-03-10 17:10:58 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-10 10:10:58 +0100 |
commit | 5914f91b6c980e42693661d5fd5640e237691df6 (patch) | |
tree | bce51813806dc2c96ce41b9df75fad973fe7ee62 /langs/config.go | |
parent | 5b4659fa0bd28511b8aded64e824e73baaabb0b5 (diff) | |
download | hugo-5914f91b6c980e42693661d5fd5640e237691df6.tar.gz hugo-5914f91b6c980e42693661d5fd5640e237691df6.zip |
Add languageDirection to language configuration
Fixes #6550
Diffstat (limited to 'langs/config.go')
-rw-r--r-- | langs/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/langs/config.go b/langs/config.go index 184223650..08cd15009 100644 --- a/langs/config.go +++ b/langs/config.go @@ -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": |