Overview#
I had the opportunity to add Japanese translation to a documentation site built with sphinx, so this is a note for reference.
The target is the following.
https://github.com/artefactual/archivematica-storage-service-docs
Method#
First, fork the target repository.

Next, clone it.
Here, we create a Python virtual environment.
Adding Libraries#
Add sphinx-intl to requirements.txt and install it.
(Optional) conf.py#
If language settings do not exist in conf.py, add them as follows.
Then run the gettext build.
Creating the Japanese Directory#
Running the following creates po files in locale/ja.
Editing#
Localization is done by editing the po files under locale/ja.
Development#
The following command allows you to preview the site.
Build#
The following command stores the build results in _build/html.
Deployment#
As a result, it is deployed as follows.
https://nakamura196.github.io/archivematica-storage-service-docs/
Summary#
I hope this is helpful.