bilingual¶
Write the documentation in English.
Change directory to the /docs and input two commands below.
1sphinx-build -b gettext ./source ./build/gettext
2sphinx-intl update -p ./build/gettext -l zh_CN
Fetch the *.po files in /docs/locales and translate as needed.
Compile the documentation just in the target language.
1sphinx-build -b html -D language=zh_CN ./source/ build/html/zh_CN