gtranslatets
v1.0.0
Published
*Translate stuff simply and fast using your google api credentials.. faster than it already is*
Downloads
1
Readme
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" }
})