79195444

Date: 2024-11-16 15:26:04
Score: 1
Natty:
Report link

I finally found what works. You create a translate "client" and then pass the credentials to that client.

from google.cloud import translate_v3beta1 as translate
client = translate.TranslationServiceClient(credentials=credentials)

Then you can access the translate_document method of client.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rasputin