1.1.2 • Published 7 years ago

translate-api-tmp v1.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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

http://translate.hotcn.top/

Npm Module

Install

  $ npm install translate-api --save

Example

  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)
  });
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago