Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Latest commit

 

History

History
16 lines (10 loc) · 796 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 796 Bytes

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.