Skip to content

Building for a translation #446

Answered by jooyunghan
moreirayokoyama asked this question in Q&A
Discussion options

You must be logged in to vote

Here's how I did:

mdbook build
MDBOOK_BOOK__LANGUAGE=ko MDBOOK_PREPROCESSOR__GETTEXT__PO_FILE=po/ko.po mdbook build -d book/ko
MDBOOK_BOOK__LANGUAGE=pt-BR MDBOOK_PREPROCESSOR__GETTEXT__PO_FILE=po/pt-BR.po mdbook build -d book/pt-BR
xdg-open book/index.html

Note that mdbook build should come first, otherwise it will blow up ko and pt-BR in it.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@moreirayokoyama
Comment options

@jooyunghan
Comment options

@moreirayokoyama
Comment options

@mgeisler
Comment options

Answer selected by moreirayokoyama
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants