Google Translate API client for node.js.
npm install node-google-translate-china --save
OR
yarn add node-google-translate-china
var translate = require('node-google-translate-china');
translate({
text: 'text',
source: 'es',
target: 'en'
}, function(result) {
console.log(result);
});