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

zacanger/translate-batches

master
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?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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