Open funkyremi opened 5 years ago
Hi
It's a enhacement good because sometimes translation also throws a 403 http status code #43
Executing...
Error notification
Hey :-) Do you want to make a pull request for this one?
Sorry @funkyremi, at this moment i don't know how to develop vscode extensions 😣
@funkyremi I'll try.
I used GT only via a projectID and I don't know is there any API key possibility?
Cool thank you @contributorpw 👍 You can use whatever is suggested by Google documentation : https://cloud.google.com/translate/docs/basic/quickstart#translate_translate_text-nodejs
Don't forget to add documention providing a guide on how to get a key, once this PR is completed.
Presently libraries aka 'A free and unlimited API for Google Translate' use special code to generate a client-side shared token. So they use a different endpoint to call the API.
It looks like connecting the Google Translate API will require an interface to interact with the add-on. We need a common interface to connect all possible translation libraries as needed.
Add the ability to set and use the user Google Translate API key.
https://www.npmjs.com/package/@google-cloud/translate