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 613ba75e88
commit 7098444592

View File

@ -47,6 +47,11 @@ weight = 2
linkedin = "https://linkedin.com/fr/whoever" linkedin = "https://linkedin.com/fr/whoever"
[languages.fr.params.navigation] [languages.fr.params.navigation]
help = "Aide" help = "Aide"
[languages.ar]
title = "مدونتي"
weight = 2
languagedirection = "rtl"
{{< /code-toggle >}} {{< /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. 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.