nodejs-translate
nodejs-translate copied to clipboard
Use API Key instead of service account
Hi, I would like to avoid setting up a Service Account and use an API Key instead.
Is it possible?
Thanks.
This works:
const translate = new Translate({key: process.env.GOOGLE_API_KEY });
``
Nevertheless, the docs kind of push you to use a service account. Adding a note or something to point out that this is possible wouldn't hurt. I had to search on this repo's source to find it.
Closing for now, as this seems to be resolved. Thank you!