Multi-lingual Support

Support for translation of some ox-hugo inserted strings based on org-export-translate machinery designed in ox.el.

ox-hugo relies on the org-export-dictionary variable from the core Org Export library ox.el to derive translated strings for these:

  • Source block caption prefix “Code Snippet”
  • Figure caption prefix “Figure”
  • Table caption prefix “Table”
  • Table of contents heading “Table of Contents”
  • Bibliography heading “References”

The translation language is detected from the #+language: keyword present in the Org file or the :EXPORT_LANGUAGE: property in the post subtree. For reference, see the LANGUAGE keyword documentation in Org Info: Export Settings.

Fork me on GitHub