translate-api-tmp

1.1.2 • Public • Published

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/

google translate

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

Readme

Keywords

none

Package Sidebar

Install

npm i translate-api-tmp

Weekly Downloads

1

Version

1.1.2

License

ISC

Last publish

Collaborators

  • bingo_czb