How set API KEY in Google Translate Node.js code
问题 I'm trying to create a Node.js code that uses google translate api. I got the code below from the google doc (https://cloud.google.com/translate/docs/translating-text) But when I run it, it says "Error: The request is missing a valid API key." I have the key, but i don't know how and where to set it. async function translate() { // Imports the Google Cloud client library const { Translate } = require('@google-cloud/translate'); // Creates a client const translate = new Translate(); /** * TODO