mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Add `book.translations` to support translation preprocessors

Open jooyunghan opened this issue 2 years ago • 0 comments

Related to #5

When set, build runs a renderer for each translations after setting book.language to a subdirectory.

For example, when it's set ["ko", "ja"], mdbook build -d book will generate the output:

book/
  (default output)
  ko/
    (ko output)
  ja/
    (ja output)

This enables translation to be handled by preprocessors. For example, it could be PO-file based translation based on book.language.

jooyunghan avatar Feb 22 '23 06:02 jooyunghan