traduction
v1.6.0
Published
This module allows you to translate text into more than 103 different languages
Downloads
44
Readme
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