Using @google-cloud from angular app

362 views
Skip to first unread message

Royappa

unread,
Jun 8, 2019, 1:48:46 PM6/8/19
to Google Cloud Translation API
I'm having trouble calling the translation API from an Angular app.
The console node.js sample works fine on my computer.

I imagine this is because the @google-cloud/translate API does not get fully loaded into the client side libraries. Is there a howto somewhere?

I posted full details here:

Thanks

George (Cloud Platform Support)

unread,
Jun 10, 2019, 4:56:24 PM6/10/19
to Google Cloud Translation API
Using Client Libraries is highly recommendable. For node.js, importing and using Client Libraries is explained, with examples, on the googleapis/nodejs-translate page in GitHub. You should make sure your Angular app imports these Libraries properly by comparing your code with provided examples. 
Reply all
Reply to author
Forward
0 new messages