Skip to content

A script to talk to Google Cloud Translation API and get your files Google-translated

Notifications You must be signed in to change notification settings

MGheini/gcp-translation-api-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

gcp-translation-api-script

A script to talk to Google Cloud Translation API and get your files Google-translated

First, follow Cloud Translation Quickstart here to set up a GCP project, set the required environment variable, and install the client library. Then you can use this script per the description below:

usage: g_translate.py [-h] -i INPUT -s SOURCE [-t TARGET] [-o OUTPUT]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input file path (default: None)
  -s SOURCE, --source SOURCE
                        Source language (default: None)
  -t TARGET, --target TARGET
                        Target language (default: en)
  -o OUTPUT, --output OUTPUT
                        Output file path (default: gt_out.txt)

About

A script to talk to Google Cloud Translation API and get your files Google-translated

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages