Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jules010209/traduction

Ce module vous permet de traduire du texte dans plus de 103 langues différentes.
https://github.com/jules010209/traduction

free google module npmjs traduction translate

Last synced: 7 days ago
JSON representation

Ce module vous permet de traduire du texte dans plus de 103 langues différentes.

Awesome Lists containing this project

README

        

# Traduction

```bat
This module allows you to translate text into more than 103 different languages.
```

## Translate a Languages

```js
const { translate } = require('traduction');

(async () => {
console.log(await translate('Comment vas-tu ?', 'fr', 'en'));
})();
```

Output :

```js
How are you ?
```

> NOTE : If you forget "await" before translate, the console will be return "Promise { }". So you don't forget "await".



## Module explanation

```js
(async () => {
console.log(await translate('Salut', 'fr', 'en'));
})();

/**
* @param { string } 'Salut'
* @param { string } 'fr'
* @param { string } 'en'
**/
```






>## Github

[Jules010209](https://github.com/Jules010209) - [Yokachi](https://github.com/Yokachi)