1.1.2 • Published 9 years ago
translate-api-tmp v1.1.2
translate-api
A Node.js module for working with the Google Translation. Automatically handles bulk translations that exceed the Google Translation API query limit.
DEMO
Npm Module
Install
  $ npm install translate-api --saveExample
  const translate = require('translate-api');
  let transUrl = 'https://nodejs.org/en/';
  translate.getPage(transUrl).then(function(htmlStr){
    console.log(htmlStr.length)
  });
  let transText = 'hello world!';
  translate.getText(transText,{to: 'zh-CN'}).then(function(text){
    console.log(text)
  });