Skip to content

Auto-input po-style translation files using Google Translate API.

Notifications You must be signed in to change notification settings

r1z4x/google-translate-po

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-translate-po

Auto-input po-style translation files using Google Translate API.

screenshot

See PR: Translate into English using Google Translate API - c-bata/webframework-in-python or my Japanese blog article.

Setup

This requires Python3 and google-cloud-translate library.

$ pip install --upgrade google-cloud-translate
$ export GOOGLE_SERVICE_ACCOUNT_JSON=/path/to/service-account-credential.json

Usage

$ python translate_po.py --help
usage: translate_po.py [-h] [--lang LANG] [--currency CURRENCY] filepath

positional arguments:
  filepath

optional arguments:
  -h, --help           show this help message and exit
  --lang LANG          target language (default: "ja")
  --currency CURRENCY  dollar per your currency. (default currency is yen: 111.90)

LICENSE

MIT License.

About

Auto-input po-style translation files using Google Translate API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%