3.0.0 • Published 1 year ago

@almeidx/translate v3.0.0

Weekly downloads
19
License
MIT
Repository
-
Last release
1 year ago

@almeidx/translate

Use this package to easily translate text into another language using Google Translate.

Install

yarn add @almeidx/translate

or

npm i @almeidx/translate

Usage

translation(text: string, targetLang: string, sourceLang?: string)

Examples

import translate from '@almeidx/translate';
// or
const { translate } = require('@almeidx/translate');

const translation = await translate('Hello', 'es');

console.log(translation);
// {
//   translation: 'Hola',
//   sourceLang: 'Hello',
//   source: 'Hello',
//   targetLang: 'es'
// }
3.0.0

1 year ago

2.3.0

2 years ago

2.2.2

3 years ago

2.2.1

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago