Skip to content

Jules010209/traduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traduction

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

Translate a Languages

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

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

Output :

How are you ?

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



Module explanation

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

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



Github


Jules010209 - Yokachi

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published