HBS suppports multiple languages out of box, such as English, Simplified Chinese, Traditional Chinese, French, Russian etc.
Supported Languages#
Language | Code |
---|---|
English | en |
Simplified Chinese | zh-hans (Recommended), zh-cn |
Traditional Chinese | zh-hant (Recommended), zh-tw , zh-hk |
Arabic | ar |
German | de |
French | fr |
Indonesian | id |
Japanese | ja |
Polish | pl |
Portuguese | pt |
Russian | ru |
Ukrainian | uk |
Uzbek | uz |
Configuration#
You’ll need to specify the
languageDirection
asrtl
for Right-to-left writing languages.
See also Hugo Multilingual.
Localization#
The dateFormat
supports localization, you can change it as :date_full
, you can find more layouts in Date/time formatting layouts.
Please note that the
zh-cn
,zh-tw
andzh-hk
are not supported, since the language code could not match the locales defined in Hugo Locales.
Comments