From a1d4ec4b6fd7d27d38803bd7a35a0cf62319fb5c Mon Sep 17 00:00:00 2001 From: Dipesh Rawat Date: Wed, 24 Jan 2024 14:45:36 +0000 Subject: [PATCH] Add doc for language weight parameter assignment --- content/en/docs/contribute/localization.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/en/docs/contribute/localization.md b/content/en/docs/contribute/localization.md index 14ee682f5ad..f25c74de7f9 100644 --- a/content/en/docs/contribute/localization.md +++ b/content/en/docs/contribute/localization.md @@ -187,8 +187,11 @@ script and use it in the theme. Assign "language name in latin script" to `languageNameLatinScript`. For example, `languageNameLatinScript ="Korean"` or `languageNameLatinScript = "Deutsch"`. -When assigning a `weight` parameter for your block, find the language block with -the highest weight and add 1 to that value. +The `weight` parameter determines the order of languages in the language selection bar. +A lower weight takes precedence, resulting in the language appearing first. +When assigning the `weight` parameter, it is important to examine the existing languages +block and adjust their weights to ensure they are in a sorted order relative to all languages, +including any newly added language. For more information about Hugo's multilingual support, see "[Multilingual Mode](https://gohugo.io/content-management/multilingual/)".