1.0.12 • Published 3 years ago

text-translator v1.0.12

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

#Language Translator

Installation

npm i text-translator

Configuration

Currently AWS Translate API is supported for this package. In future, there will be more packages like this.

You need to set environment variables:

AWS_ACCESS_KEY=<your-aws-access-key>

AWS_SECRET_KEY=<your-aws-secret-key>

REGION=<your-aws-region> (default is us-east-1)

Basic Usage

import { LanguageTranslateService } from 'text-translator';
const translate = new LanguageTranslateService();
translate.translate('<h1>Hi, how are you</h1>', 'fr', TextType.HTML,  TranslateProvider.AWS).then(translatedText => {
    console.log('Translated Text', translatedText);
});

The text type supports Plain text, Html and markdown text types.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.1

6 years ago