Bulk translates html pages to language
- Install python.
- Optional: Create virtual environment then activate.
- Install dependencies
pip install -r requirements.txt
- Setup a Google Translate app api from your Cloud.
- Download the credentials json file in this folder rename it
translate.json
- Run
python translate.py
. - Enter the path where the .html files are located.
- Enter language, use language code (ISO 639-1). For instance English, you msut enter
en
and notenglish
. - See the references https://www.loc.gov/standards/iso639-2/php/code_list.php