Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ribeirogab/free-translate

πŸˆ‚οΈ β €A free and unlimited translator for Node.js.
https://github.com/ribeirogab/free-translate

nodejs translate translation translator

Last synced: about 2 months ago
JSON representation

πŸˆ‚οΈ β €A free and unlimited translator for Node.js.

Awesome Lists containing this project

README

        


free translate

# A free and unlimited translator for Node.js

> πŸˆ‚οΈ β €free text translator for Node.js.

## **Install**

To install free-translate, you can use NPM:

```zsh
npm install free-translate
```

## **Quick examples**

```js
const { translate } = require('free-translate');

(async () => {
const translatedText = await translate('Hello World', { from: 'en', to: 'ja' });

console.log(translatedText); // γ“γ‚“γ«γ‘γ―δΈ–η•Œ
})();
```

### **Automatic language recognition**

If the language informed in the `from` is dynamic, just do not send it and the translator will automatically recognize it:

```js
const { translate } = require('free-translate');

(async () => {
const translatedText = await translate('This is cool!', { to: 'ja' });

console.log(translatedText); // γ“γ‚Œγ―γ‚«γƒƒγ‚³γ„γ„οΌ
})();
```

---

## Support

Contact me!

- E-mail `[email protected]`

---

## License

[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)

- **[MIT license](http://opensource.org/licenses/mit-license.php)**