jelovirt / pdf-generator

DITA-OT PDF plug-in generator
https://dita-generator.elovirta.com/
Apache License 2.0
12 stars 5 forks source link

Multilanguage support for `content` #51

Open jelovirt opened 2 years ago

jelovirt commented 2 years ago

Allow content keys to define multiple languages, e.g.

header:
  content:
    en-US: User Manual
    de-DE: Benutzerhandbuch

If language code is not set, the language defaults to empty string, i.e. no language. Thus it will be used for all languages.

header:
  content: "{title}"

is desugared to

header:
  content:
    "": "{title}"