thegeeklab/hugo-geekdoc

Localization admonitions

KwadroNaut opened this issue · 1 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.

xoxys commented

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.