google-translate-api
google-translate-api copied to clipboard
Implementation for browser
Howdy! Can you implement GT Api for using in browser?
I'm trying to do that with Browserify, but it's not working.
I'm assuming you can only implement this into your own Node server as that's what I did.
You cannot implement this for a browser.
Although it might seem possible with jQuery and then call Browserify, it's not possible.
You will run into a CORS error. Loading the translate page into an iframe to solve the CORS error and afterwards parse its contents isn't possible either, as Google doesn't allow you to embed translate into an iframe.
https://github.com/cjvnjde/google-translate-api-browser would like to say hi, @JValck. It's a version made for exactly that, the browser.