About this package

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