0.3.7 • Published 9 months ago

iframe-translator v0.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

iframe-translator

Translate text for free in the browser with iframe shenanigans

Status: Normal

View on npm Publish Package Deploy Frontend

View on npm

Installation

npm i iframe-translator

Usage

General Usage

import { getClient, AvailableLanguages } from 'iframe-translator';

async function main() {
  const client = await getClient();
  console.log(AvailableLanguages); // { 'af': 'Afrikaans', ... }
  console.log(await client.translate('こんにちは')); // hello
  console.log(await client.translate('こんにちは', 'ko')); // 안녕하세요
  client.destroy();
}

Type Definitions

import type { AvailableLanguageCodes, IframeTranslatorClient } from 'iframe-translator';
0.3.7

9 months ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago