1.0.0 • Published 3 years ago

gtranslatets v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

simple-translate

Translate stuff simply and fast using your google api credentials.. faster than it already is

This is almost pointless. I used it to cheat my way through languages I guess. As always, when cheating language classes, you shouldn't 100% trust google translate (blah blah disclaimer stuff)..

Usage

Using this programmatically looks something like this:

const translator = new Translate({ projectId: "your project id", apiKey: "your api key" });

translator.translate("hello", "fr").then((res) => {
    console.log(res);
    // { "original": "hello", "translation" : "bonjour" }
})