🈂️ ⠀free text translator for Node.js.
To install free-translate, you can use NPM:
npm install free-translate
const { translate } = require('free-translate');
(async () => {
const translatedText = await translate('Hello World', { from: 'en', to: 'ja' });
console.log(translatedText); // こんにちは世界
})();
If the language informed in the from
is dynamic, just do not send it and the translator will automatically recognize it:
const { translate } = require('free-translate');
(async () => {
const translatedText = await translate('This is cool!', { to: 'ja' });
console.log(translatedText); // これはカッコいい!
})();
Contact me!
- E-mail
[email protected]