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


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


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 ./ 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.