From e18d2fabd9e6206a8333d2d6089e9b37d30f06fa Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 13 Nov 2020 10:58:16 +0100 Subject: [PATCH] Add recomendation to specify languageCode for each language in multilingual sites. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8111e41..fe90340 100644 --- a/README.md +++ b/README.md @@ -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" ```