Skip to main content
The Deno 2 Release Candidate is here
Learn more

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