matheuss / google-translate-api

A free and unlimited API for Google Translate :dollar::no_entry_sign:
https://npmjs.com/package/google-translate-api
MIT License
2.89k stars 609 forks source link

Can't translate for Hindi Language #64

Open neran27 opened 6 years ago

neran27 commented 6 years ago

var toLang = 'hi'; translate(engText, {from:'en',to: toLang}).then(resp => { var outStr = resp.text;
console.log("output - 1: " +outStr);
}).catch(err => { console.error(err); });

rawr51919 commented 5 years ago

This code should work fine, however, this repo has been broken for a while now, so try using https://github.com/vitalets/google-translate-api instead.