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

@@ -47,6 +47,11 @@ weight = 2
linkedin = "https://linkedin.com/fr/whoever"
[languages.fr.params.navigation]
help = "Aide"
[languages.ar]
title = "مدونتي"
weight = 2
languagedirection = "rtl"
{{< /code-toggle >}}
Anything not defined in a `languages` block will fall back to the global value for that key (e.g., `copyright` for the English `en` language). This also works for `params`, as demonstrated with `help` above: You will get the value `Aide` in French and `Help` in all the languages without this parameter set.