Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.
/ translate-batches Public archive

Bulk translate text files using Google Cloud Translate and Amazon Translate

License

Notifications You must be signed in to change notification settings

zacanger/translate-batches

Repository files navigation

translate-batches

Bulk translate text files using Google Cloud Translate and Amazon Translate

Support with PayPal Patreon ko-fi


This script translates a directory of files using either Amazon or Google. It was originally written to automate translations from Chinese and Sinhala to English to use as a base for a translation of a Buddhist text.

There are some variables in the script that need to be changed before running. See the comments in the script. You will need AWS CLI and/or Google CLI (or a service account) set up. See Google and Amazon's docs on how to do that.

Once configured, Call it with ./translate.py path/to/directory where the directory has a bunch of markdown files in the language you want to translate. This will produce new files in that directory that can then be moved, renamed, and eventually cleaned up and organized into readable text.

LICENSE