Skip to content

Latest commit

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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

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

About

A free google translation api, support text and page

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages