React intrl creates a simple *.json
file. And sometimes need to autotranslate this file into different languages without manual work.
This script allows to autotranslate React Intl resource files via Google Translate service(require Google Cloud API Key)
Command params: node index.js --source-file --target-file --language --path-to-api-key.json
Example of usage node ./index.js ./en.json ./zh.json zh