Create a Translate Api from google with Express JS
git clone https://github.com/fitri-hy/api-translate-express.git
cd api-translate-express
npm install api-translate-expressjs
# port
PORT='5000'
# rate 15 minute
LIMIT_RATE='15 * 60 * 1000'
# limit request
LIMIT_MAX='100'
# message over limit
LIMIT_MESSAGE='Too many requests from this IP, please try again later.'
require('api-translate-expressjs');
node index.js
http://localhost:5000/translate?text=<query>&from=<fromLang>&to=<toLang>
http://localhost:5000/translate?text=cat&from=en&to=id
Go to Language Code
Official Site: VISIT