About this package
- Translators package is supported by 4 Translate engines.
- Translate ( translate.com )
- Google ( translate.google.com )
- Hozory ( hozory.com )
- Translatedict ( translatedict.com )
Usage
[!NOTE] This project is made for training\educational reason.
Import
import Engine from "https://deno.land/x/translators/mod.ts";
Example
async function main() {
const engine = new Engine();
const translateResult = await engine.google.translate(
"Hola, mi amor",
"ar",
);
const detectResult = await engine.tr.detect(
"Hola",
);
console.log(translateResult);
console.log(detectResult);
}
main();
LICENSE
- MIT