Multilingual
Translate the docs tree and keep language-specific fallbacks clear.
The theme is built around Hugo’s multilingual mode.
# Language configuration
The example site defines each language in exampleSite/hugo.toml:
| Language | Locale | Direction |
|---|---|---|
| English | en-US |
ltr |
| French | fr-FR |
ltr |
| Japanese | ja-JP |
ltr |
| Arabic | ar |
rtl |
# Content directories
Each language gets its own content root:
content/
en/
fr/
ja/
ar/Use defaultContentLanguageInSubdir = true so translated URLs stay language-prefixed and predictable.
# Translation behavior
The docs shell shows translation warnings when a page is machine translated or incomplete. When a page does not exist in a target language, the theme can fall back to the equivalent page in the default language or to the version root.
What the example site demonstrates
langanddiron the root<html>- language switcher placement in the sidebar
- Arabic RTL layout and code blocks that remain LTR
- translation-aware page navigation
langanddiron the root<html>- language switcher placement in the sidebar
- Arabic RTL layout and code blocks that remain LTR
- translation-aware page navigation