thegeeklab / hugo-geekdoc

Hugo theme made for documentation

Home Page:https://geekdocs.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Localization admonitions

KwadroNaut opened this issue · comments

Default admonitions aren't localized. There are only 5 (note, tip, important, caution and warning), shouldn't be hard. I didn't see them in the existing i18n directory.

I don't see a way to localize admonitions through Hugo i18n function, as the admonitions are rendered from asciidoc directly. You can use the :<type>-caption: attribute to localize the title. More details can be found in the official asciidoc docs https://docs.asciidoctor.org/asciidoc/latest/blocks/admonitions/#using-emoji-for-admonition-icons.