@iamthes/google-translate

1.0.0 • Public • Published

google-translate

Translate text using translate.google.com directly (without API key).

USAGE

googleTranslate(text, {from?: code, to: code});

Parameters:
text - source translating text
Options:
from - language code for source text (default: "en")
to - destination language code

EXAMPLE

var googleTranslate = require("google-translate");
var result = googleTranslate("Hello world", {to: "de"});
console.log(result); // Hallo Welt

Readme

Keywords

Package Sidebar

Install

npm i @iamthes/google-translate

Weekly Downloads

1

Version

1.0.0

License

UNLICENSED

Last publish

Collaborators

  • iamthes