Skip to content

Commit 44ed64e

Browse files
authored
Merge pull request #32751 from seokho-son/l10ng
Update l10n guide to use both native and English names in config.toml
2 parents 132fece + 3f70b2f commit 44ed64e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/en/docs/contribute/localization.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,14 @@ Add a configuration block for the new language to `config.toml`, under the exist
125125
[languages.de]
126126
title = "Kubernetes"
127127
description = "Produktionsreife Container-Verwaltung"
128-
languageName = "Deutsch"
128+
languageName = "Deutsch (German)"
129+
languageNameLatinScript = "German"
129130
contentDir = "content/de"
130-
weight = 3
131+
weight = 8
131132
```
132133

134+
The value for `languageName` will be listed in language selection bar. Assign "language name in native script (language name in latin script)" to `languageName`, for example, `languageName = "한국어 (Korean)"`. `languageNameLatinScript` can be used to access the language name in latin script and use it in the theme. Assign "language name in latin script" to `languageNameLatinScript`, for example, `languageNameLatinScript ="Korean"`.
135+
133136
When assigning a `weight` parameter for your block, find the language block with the highest weight and add 1 to that value.
134137

135138
For more information about Hugo's multilingual support, see "[Multilingual Mode](https://gohugo.io/content-management/multilingual/)".

0 commit comments

Comments
 (0)