Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 810 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 810 Bytes

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