Add recomendation to specify languageCode for each language in multilingual sites.
This commit is contained in:
parent
7dab9c765b
commit
e18d2fabd9
1 changed files with 5 additions and 0 deletions
|
|
@ -279,18 +279,23 @@ The language selector will link to a translation of the current page if it exist
|
|||
|
||||
For "rtl" languages add a `languageDirection` parameter to the language configuration. If not added it will default to "ltr".
|
||||
|
||||
Best to add a `languageCode` parameter as well, that is used to set the correct language attribute in the `html` tag and in feeds.
|
||||
|
||||
```
|
||||
languages:
|
||||
sv:
|
||||
weight: 1
|
||||
languageName: "Svenska"
|
||||
languageCode: "sv-SE"
|
||||
en:
|
||||
weight: 2
|
||||
languageName: "English"
|
||||
languageCode: "en-gb"
|
||||
ar:
|
||||
weight: 3
|
||||
languageName: "العربية"
|
||||
languageDirection: "rtl"
|
||||
languageCode: "ar"
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue