Multilingual
Th' Relearrrn theme works wit' Hugo’s multilingual mode.
It supports many languages, includ'n right-to-left languages.
Translat'n by File Name
Here’s how t' make yer ship multilingual us'n translat'ns by file name:
-
Set up languages 'n yer
hugo.tomlfile:hugo. -
Duplicate yer rrrambl'n files an' add language codes t' their file names:
- rrrambl'n
- log
- first-day
- _index.en.md
- _index.pir.md
- second-day
- index.en.md
- index.pir.md
- third-day.en.md
- third-day.pir.md
- _index.en.md
- _index.pir.md
- first-day
- _index.en.md
- _index.pir.md
- log
- themes
- hugo-theme-relearn
- …
- hugo-theme-relearn
- hugo.toml
- rrrambl'n
Translat'n by Rrrambl'n Directory
Th' theme also support translat'ns by rrrambl'n directory which can be configured 'n a similar way.
-
Set up languages 'n yer
hugo.tomlfile:hugo. -
Duplicate yer rrrambl'n files into separate directories named by their language code:
- rrrambl'n
- en
- log
- first-day
- _index.md
- second-day
- index.md
- third-day.md
- _index.md
- first-day
- _index.md
- log
- pir
- log
- first-day
- _index.md
- second-day
- index.md
- third-day.md
- _index.md
- first-day
- _index.md
- log
- en
- themes
- hugo-theme-relearn
- …
- hugo-theme-relearn
- hugo.toml
- rrrambl'n
Search Sett'ns
Check th' search configurat'n fer multilingual opt'ns.
Turn Off Language Switch'n
Opt'n By default th' theme shows a language switcher 'n th' lower part o' th' menu.
If ye want t' have more control, whar' th' language switcher be positioned or ye want t' configure a different ay'con, see th' chapter on sidebar configurat'n.
T' dis'ble th' language switcher set disableLanguageSwitchingButton=true