A Node.js module for working with the Google Translation. Automatically handles bulk translations that exceed the Google Translation API query limit.
$ npm install translate-api --save
consttranslate=require('translate-api');lettransUrl='https://nodejs.org/en/';translate.getPage(transUrl).then(function(htmlStr){console.log(htmlStr.length)});lettransText='hello world!';translate.getText(transText,{to: 'zh-CN'}).then(function(text){console.log(text)});