I can't remember the procedure easily, so make a note.
pip install sphinx-intl
conf.py
locale_dirs = ['The path of the directory where the translation files are placed']
gettext_compact = False
language = 'Translated language'
# build/locale_Create a pot file under dirs.
make gettext
# source/locale_Generate a po file under dirs.
sphinx-intl update -p build/locale_dirs -l language
source / locale_dirs / language / LC_MESSAGES
Put the translation in the po file under it.
sphinx-intl build
make html
Recommended Posts