npm

traduction

1.6.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i traduction

Weekly Downloads

3

Version

1.6.0

License

ISC

Unpacked Size

7.28 kB

Total Files

5

Last publish

Collaborators

  • jules010209
  • yokachi