Questions tagged [google-cloud-translate]
56 questions
0
votes
3 answers
Google cloud translate API v2 - getting errors with large text pieces
I have this code which I am trying to use to translate my website page content:
$url = "https://translation.googleapis.com/language/translate/v2";
$sendParamsObj = [
"key" => "insert api key"
,
"source" => 'en-us'
,
…

Tom
- 3,587
- 9
- 69
- 124
0
votes
0 answers
Effect of using a preemptive Compute Engine VM instance on Google Cloud Platform to translate large .docx files from Arabic to English
Does anyone have experience regarding a possible downside of using a preemptive Compute Engine VM instance on GCP? To minimize the monthly cost of translating .docx documents using the Google Cloud Translation API, I have chosen an entry-level…

Gary Lebowitz
- 11
- 2
0
votes
1 answer
How to add credentials to Advanced Edition V3 of Google translate API in Nodejs
I can see some tutorials on using the v2 and they add the credentials here
const translate = new Translate({project id and credentials});
How about the third v3? will it work just like this…

Nani Po
- 61
- 3
0
votes
1 answer
How to translate HTML file locally
I have an HTML file that contains some text in English, and I want to translate it into another language. I'm using the google-cloud-translate library in Python, and I have already set up my authentication credentials using the os.environ…

visiwat303
- 11
- 3
0
votes
0 answers
"from google.cloud import translate" not working in pycharm, I already install google cloud in pycharm?
I am trying to import google cloud translation in my project.
0
votes
1 answer
i am trying to use google.cloud.translate_v3 to translate from English to a different language
from google.cloud import translate_v3 as translate
def translate_sentence(sentence, target_language):
# Create a TranslationClient
client = translate.TranslationClient()
# Translate the sentence
translation = client.translate(sentence,…
0
votes
0 answers
PERMISSION_DENIED: Cloud IAM permission 'cloudtranslate.generalModels.predict' denied
I am facing the same error. I am using a separate cloud Linux and using nodejs client library
@google-cloud/translate. I am using service account key and set it at env variable
GOOGLE_APPLICATION_CREDENTIALS.
Case 1) When I execute the the…

sharad
- 1
0
votes
0 answers
How to translate full website pages with a language switcher using Google Cloud Translation?
So I have been using the Google Translate widget on my website to have a language switcher that could easily translate whole webpages into different languages. This is how I embedded it on my website:
…
0
votes
0 answers
Google cloud translate Service V3 does not translate proper document .some pages leave as it is ,and some page has changed position of words
I am using Google Cloud Service V3 in WEb api core and I found that translation was not proper way
1.Some Pages was not translate ,it leave as it is.
2.some word overlapped and some words had changed position.
var result = await…

dev sharma
- 3
- 2
0
votes
1 answer
Latest Google.Cloud.Translation.V2 no longer compatible with UWP app
I have been using Google.Cloud.Translation.V2 in a UWP app for a while. Its latest NuGet package is 3.1.0. Upgrading from 2.x to 3.x results in the following error:
NU1202: Package Google.Cloud.Translation.V2 3.1.0 is not compatible
with…

Hong
- 17,643
- 21
- 81
- 142
0
votes
1 answer
How does client= translate.TranslationServiceClient() work in conjunction with os.environ['GOOGLE_APPLICATION_CREDENTIALS']
I am using python and azure function app to send a document to be translated using the google cloud translation api.
I am trying to load the credentials from a tempfile (json) using the below code. The idea is to later download the json file from…

Jane Mcguire
- 11
- 2
0
votes
1 answer
How to query text reading from Google Cloud Translation API
I want to be able to convert Japanese kanji to their readings, e.g. 日本語 to nihongo or にほんご.
Google translate website allows you to do that - https://translate.google.com/?sl=ja&tl=en&text=%E6%97%A5%E6%9C%AC%E8%AA%9E&op=translate.
You can see that it…

Devaniti
- 66
- 8
0
votes
1 answer
How to get authentication for Using Googles Media Translation API with Springboot
I am trying out Google's Media Translation API. I cloned their test code that can be found here
but I am getting an error
java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute…

Owolabi Ezekiel Tobiloba
- 86
- 1
- 7
0
votes
0 answers
Google Cloud Translation from Russian to English does not work when Russian is not in Russian alphabet
I am using v3 Google Cloud Translate API (projects.translateText documentation). I have noticed that when I translate from a language with one alphabet (ie. Russian) to a language with another alphabet (ie. English) using characters from the second…

ninja coder
- 1,067
- 9
- 22
0
votes
1 answer
Getting error when using google cloud translate in ruby on rails 5.2.4
I am trying to execute some code in the console of my local environment, with rails 5.2.4
I have the gem
gem 'google-cloud-translate'
and I want to translate a string locally, I do:
parent = @client.class.location_path…

Gotey
- 449
- 4
- 15
- 41