Vadim Sozykin wrote:
Recently I encountered the same error. After a thorough web-research I found this guide.
Please, be sure to complete steps 1-5 at the top of the pagehttps://cloud.google.com/translate/docs/getting-started?csw=1
The steps mentioned on that page are:
1. Create a new project
2. Enable billing for your project
3. Enable the Cloud Translation API
4. Set up your Cloud Translation API credentials
5. Set Up a Service Account
Once I completed all the 5 steps, it is now working perfectly.