Petermuturi / gtd-scripts

Scripts for getting things done.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtd-scripts

Scripts for getting things done.

The translate-json node script is simple. It takes an input .json file, a comma separated list of language codes supported by Google Translate, and an optional api key.

Usage with an API Key

node translate-json fixtures/translate-json/en.json fr,et,nl YOUR_GOOGLE_API_KEY

Usage without an API Key

node translate-json fixtures/translate-json/en.json fr,et,nl

This free version will let you batch-translate a file until you start beeing rejected by Google's servers. As this script has caching enabled, it's possible to translate files incrementally. New requests will become available in 2 hours aproximately.

Future Improvements:

  • Specifying output file name and location.

About

Scripts for getting things done.


Languages

Language:JavaScript 100.0%