Improve and document how to set language direction, i.e ltr/rtl.
This commit is contained in:
parent
62df7c4b3d
commit
7b634ad79c
1 changed files with 8 additions and 1 deletions
|
|
@ -276,6 +276,8 @@ A language selector will be included on sites with more than one language. Add `
|
|||
|
||||
The language selector will link to a translation of the current page if it exist and to the front page if it does not.
|
||||
|
||||
For "rtl" languages add a `dir` parameter to the language configuration. If not added it will default to "ltr".
|
||||
|
||||
```
|
||||
languages:
|
||||
sv:
|
||||
|
|
@ -284,6 +286,11 @@ languages:
|
|||
en:
|
||||
weight: 2
|
||||
languageName: "English"
|
||||
ar:
|
||||
weight: 3
|
||||
languageName: "العربية"
|
||||
params:
|
||||
dir: "rtl"
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue