Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ribeirogab/free-translate
- Owner: ribeirogab
- Created: 2021-02-28T05:46:01.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T03:03:54.000Z (over 1 year ago)
- Last Synced: 2024-11-06T03:44:42.576Z (about 2 months ago)
- Topics: nodejs, translate, translation, translator
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/free-translate
- Size: 162 KB
- Stars: 36
- Watchers: 1
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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)**