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.
language.Title = cast.ToString(v)
case "languagename":
language.LanguageName = cast.ToString(v)
+ case "languagedirection":
+ language.LanguageDirection = cast.ToString(v)
case "weight":
language.Weight = cast.ToInt(v)
case "contentdir":
// Language manages specific-language configuration.
type Language struct {
- Lang string
- LanguageName string
- Title string
- Weight int
+ Lang string
+ LanguageName string
+ LanguageDirection string
+ Title string
+ Weight int
Disabled bool