Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jules010209/traduction
- Owner: Jules010209
- Created: 2022-07-10T16:00:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T16:52:00.000Z (about 2 years ago)
- Last Synced: 2024-11-24T20:07:48.819Z (2 months ago)
- Topics: free, google, module, npmjs, traduction, translate
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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)