Advanced
Internationalization
Internationalization (i18n) in Thulite is powered by Hugo’s multilingual mode.
Quick setup
- Define your languages in
config/_default/languages.toml. - Create language-specific content directories (for example,
content/en,content/de,content/nl). - Add translated pages with matching paths in each language directory.
- Add UI string translations in
i18n/*.toml.
Configure languages
In config/_default/languages.toml, each language has its own settings:
[en]
languageName = "English"
contentDir = "content/en"
weight = 10
[de]
languageName = "German"
contentDir = "content/de"
weight = 15contentDir tells Hugo where to find content for each language.
Add translated content
Keep the same relative path for each translation.
- English:
content/en/docs/getting-started.md - German:
content/de/docs/getting-started.md
This keeps URLs and page structure aligned across languages.
Translate interface strings
Store shared UI translations in i18n files, such as:
i18n/en.tomli18n/de.tomli18n/nl.toml
Example:
[read_more]
other = "Read more"Use Hugo’s i18n function in templates to render translated strings.
Learn more
Multilingual mode
Official Hugo guide to configure and manage multilingual sites.