From 258b71ae015144b805e9ad2ebb2dcc0710c6dec1 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Mon, 4 Apr 2022 23:25:00 +0900 Subject: [PATCH] Update l10n guide to use both native and English names --- 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 bd11ae6cb5..d0ec22ce9d 100644 --- a/content/en/docs/contribute/localization.md +++ b/content/en/docs/contribute/localization.md @@ -125,11 +125,14 @@ Add a configuration block for the new language to `config.toml`, under the exist [languages.de] title = "Kubernetes" description = "Produktionsreife Container-Verwaltung" -languageName = "Deutsch" +languageName = "Deutsch (German)" +languageNameLatinScript = "German" contentDir = "content/de" -weight = 3 +weight = 8 ``` +Assign "language name in native alphabets (language name in English alphabets)" to `languageName`, for example, `languageName = "한국어 (Korean)"`. Also, assign "language name in Latin script" to `languageNameLatinScript`, for example, `languageNameLatinScript ="Korean"`. + When assigning a `weight` parameter for your block, find the language block with the highest weight and add 1 to that value. For more information about Hugo's multilingual support, see "[Multilingual Mode](https://gohugo.io/content-management/multilingual/)".