Questions tagged [google-translate]

Google Translate is a paid statistical machine translation service provided by Google Inc. to translate a section of text, document or webpage, into another language.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
25 views

Detect multiple languages from a string?

How do I get the languages present in a string? The string can have both transliterated non-English language (non-English language written with english alphabet) and non-English language written with ...
Labib's user avatar
  • 1
0 votes
0 answers
56 views

Google Translate API TypeError: TranslationServiceClient.translate_text() got an unexpected keyword argument 'request'

I am using Google Translate API to translate docs and I am using their API and boy is it broken. I am using this link to create a function that can translate a given input text, For this code block I ...
sanster9292's user avatar
  • 1,216
0 votes
1 answer
38 views

How to add a button that translates the page into one language automatically without having to select from a drop down menu?

How to add a button that translates the page into one language automatically without having to select from a drop down menu? I'm using blogger platform.
Sulav Shrestha's user avatar
1 vote
0 answers
50 views

getting current translated language in any browser

Is there any way to find the current language of the page. I want that when 1st page load the browser should show the current language in console.And when I change the language the browser should show ...
Gyanendra Pal Singh's user avatar
0 votes
0 answers
13 views

Google Image Translation Issues using Chromedriver with Selenium

I am trying to translate a small number of images automatically using Google Translate, but I cannot seem to get it to work inside the chrome instance created by Chromedriver. I keep getting the ...
J333's user avatar
  • 1
0 votes
1 answer
68 views

Microsoft Azure Translator using like google Translator dropdown for html page

How do I use Microsoft Azure Translator using like Google Translator dropdown for html page? I have an API Key of Microsoft Azure Translator. Here is the sample screen shot:
Sunil Mathari's user avatar
0 votes
1 answer
19 views

Forbidden request goolgle translate api

I received error 403 (forbidden) doing a request to google translate. I have a free trial that ends in december 2023. api key is active. i use nordvpn.i don'use everyday. in september it worked. var ...
Gianfranco Guzzo's user avatar
0 votes
0 answers
23 views

Applying Google's notranslate to all katex blocks

I have a blog built with gatsby.js in which I insert math formulas using gatsby-remark-katex. I noticed that the math blocks it generates are wrapped within elements with class="katex-display&...
Weier's user avatar
  • 1,359
0 votes
0 answers
83 views

Issue in integrating google translate in react app . Trying to override some changes

// LanguageSwitcher.js import React, { useEffect } from 'react'; function LanguageSwitcher() { useEffect(() => { // Define the callback function for the Google Translate API window....
jeff rey's user avatar
0 votes
0 answers
65 views

Getting @google-cloud/translate API to work on localhost

Could I please get some assistance and step by step sequence of actions of what needs to be done and the conditions which need to be met to get this service to work. My project requires translation of ...
MikeyB's user avatar
  • 470
0 votes
1 answer
40 views

Googletrans not working with large datasets

I'm trying to translate a column of a Dataframe of shape (13815, 2), that are English sentences. I want to translate them to Persian('fa'). but since the size of the data is too much, every time I try ...
Majid wasiqi's user avatar
0 votes
1 answer
28 views

Exclude words on shopify from google translate

I am looking for a solution to exclude the email [email protected] from translating when using Google Translate on the entire shopify store. The reason is, it becomes info@vanea-...
Dasha's user avatar
  • 1
0 votes
0 answers
53 views

Translate pdf which has mix of English and other languages

I am trying to use google translate api. I could translate a pdf which is purely Chinese or Korean into English language, but am not able to translate a pdf which starts in English and continues in ...
vani's user avatar
  • 29
0 votes
0 answers
26 views

Asking for implementation of google translation

i try to implement google translate in my MERN project but it not work, I want to know that in which files i will place code. <div id="google_translate_element"></div> <script&...
Arsalan Awan's user avatar
0 votes
0 answers
151 views

Google Translate. Uncaught TypeError: reduce of empty array with no initial value

There is an error in Google Translate when I delete pageLanguage from configuration, trying to add Google translate to my website. And I know how to reproduce it, I tested in different environments. ...
César Cordero Rodríguez's user avatar
0 votes
0 answers
26 views

reCAPTCHA response empty for page translated with GTranslate

The reCAPTCHA response is empty and therefore not valid. The empty response only happens after switching to another language by the use of GTranslate. The default language works! The JS function is ...
Development Lameco's user avatar
0 votes
1 answer
28 views

Enable event tracking for Google Translator (TranslateElement) with Google Analytics 4

Migration from Google Analytics 3 to 4 I wonder how to replace the following Google Translator script: function googleTranslateElementInit() { new google.translate.TranslateElement({ ...
Blackbam's user avatar
  • 17.8k
0 votes
0 answers
18 views

Does Google Cloud Translation API support language like "en-US"?

The language support document says it supports en. However, it is possible to call api by specifying "en-US" for target language as follows. curl -X POST -H "Authorization: Bearer $(...
eyasy1217's user avatar
1 vote
0 answers
92 views

Pass text to Google Translate app or bypass app and go to browser

I'm creating a language deck in Anki where I have added a link to Google translate so that the user will get the sentence being learned translated into their language of choice. On desktop, the link ...
zozobra's user avatar
  • 11
0 votes
0 answers
67 views

Google translate v3 hanging when deployed to App Engine Flex Python

I've built a single wrapper for translating text using google.cloud translate_v3 from google.cloud import translate_v3 as translate from google.cloud.translate_v3 import types from credentials import ...
Magoo's user avatar
  • 2,552
0 votes
0 answers
43 views

How do I translate JSON elements with googletrans in Python giving not NoneType error

This program takes data from an API and translates one element to English then exports it to JSON together with other elements. However I get this error message: the JSON object must be str, bytes or ...
Levi's user avatar
  • 3
0 votes
0 answers
44 views

Styling Google Translate Plugin

I need some help styling and changing the way the Google Translate plugin works. I'm implementing it on my website and the way I want it to work is just to have the initials of the language. So by ...
user22446164's user avatar
0 votes
0 answers
69 views

implementing google translate in a angular app

I'm trying to implement the google translate widget in my angular app, I managed to get the code provided by google to work by implementing it in the html index but I can't create a menu that directly ...
Blank's user avatar
  • 1
0 votes
0 answers
67 views

Optimize code for speed that cleans and translates Excel Sheet using Regex and Google Translate

I have a 2 column worksheet viz., Interviewee and Verbatim on which i am running the following code, that tries to clean any emojis, special characters, html tags and transcription tags using Regex, ...
sifar's user avatar
  • 1,104
0 votes
0 answers
107 views

Auto translate word/excel document to english with Google Translate for documents using Excel VBA

I have written a sample code that opens the Google Translate webpage for Documents and automates click events to upload (Browse files) word/excel file, generate translated document and download it to ...
sifar's user avatar
  • 1,104
0 votes
1 answer
172 views

Multiple lines for Google translate API (v2) and PHP (Symfony) requests problem

In my application, which uses Symfony and Google Translate API (v2), I have the following simple code: $textArray = ["this is my text", "my text is amazing"]; $options = [ '...
Varg's user avatar
  • 412
0 votes
0 answers
47 views

403 Forbidden / Google Cloud Translate API

When we tried to send an API request to the Google Translate API from the m8market.com domain and IP address, we received an error: "403 Forbidden". This exact API key is working ...
M8market's user avatar
3 votes
2 answers
184 views

Translate a website to Spanish by Clicking a Button

I am trying to create a Button to translate my website to Spanish. I am using the already provided code by google, but the issue with the code is that it creates a drop down menu to select Spanish ...
Alextvz's user avatar
  • 31
1 vote
1 answer
337 views

How to resolve "TypeError: the JSON object must be str, bytes or bytearray, not NoneType" error, while working on translating with googletrans?

How can I resolve TypeError while translating with googletrans? TypeError occurs on 'result = translator.translate(messages[i], dest='en')', and I can't understand because type of result is '...
Scarlet's user avatar
  • 25
0 votes
0 answers
29 views

Google translation api for glossary is not restricting words which are defined in glossary file

Hi all could you please help me in this.I tried lots of ways but Google glossary is not working. I have created csv file with UTF-8 also tried .txt but still its not providing correct results. I am ...
Stackfull's user avatar
1 vote
1 answer
231 views

Google Cloud Translate API -Basic

Below is one of the python scripts recommended by google to translate text. I am using cloud translation basic version. I want to convert all the text strings to English but if it encounters an ...
hitesh goyal's user avatar
0 votes
0 answers
49 views

Google Translator Select box in Arabic

I am developing a website where I utilize Google Translator. Functionality is there, but the translator language option box is in Arabic. function googleTranslateElementInit() { new google....
DILU's user avatar
  • 1
0 votes
1 answer
179 views

Google Translate API v3: how to authenticate with private_key from Service Account Key?

How to authenticate to Google Translate API v3 with private_key from Service Account Key? As v3 doesn't work with api keys there should be a way of authentication but with private_key
perioad's user avatar
  • 19
0 votes
0 answers
30 views

Getting Google Sheets API erros in user's primary language

We are trying to handle the google sheets cell count limit overflow issue, where we are validating the error message, status text and status code to check the issue type since google APIs are not ...
Santhosh-S's user avatar
0 votes
0 answers
20 views

Google Translate Api Text Store for fewer requests

I have a pretty big ReactJs app with a NodeJs server, where I use Google Translate Api for changing the whole app language. I can cache somehow in the NodeJs the translated data, but im not sure right ...
Beni's user avatar
  • 23
0 votes
0 answers
41 views

Can't resolve 'util' in 'node_modules/@google-cloud/common/build/src'

I'm trying to implement the google translate api and am encountering this error when I import the Translate function. I have followed the documentation here. This is my code: const {Translate} = ...
chackerian's user avatar
  • 1,303
0 votes
0 answers
9 views

How I can translate integer value into other locale

I want to translate integer into Hindi integer symbols like 1 -> १ 2 -> २ when I tried to translate integer into different locale it will give the same value as original value. pls let me ...
Vikram Garasiya's user avatar
1 vote
2 answers
664 views

How do I disable Google Translate 'look up details' or just get it to the old look?

I’d say the title pretty much describes whole situation. The problem is that instead of showing translation it shows under the translation in translation tab ‘look up details’ that I am forced to ...
Littery's user avatar
  • 11
0 votes
1 answer
116 views

How to remove Google Translation Plugin when navigating to a different Vue component?

I have a small issue. Basically, I am building a website builder. I have two major parts, the builder and the preview. In the preview, I import the Google Translation plugin: onMounted(() => { ...
NicolasSC's user avatar
  • 378
0 votes
0 answers
47 views

List multiple translations via MS Power automate?

I would like to send in text + what language it's written in to Google translate, and in return get a list of that text translated into every available language, sorting order based on language A-Z. ...
Lizette Jonsson's user avatar
1 vote
1 answer
179 views

How to prevent google translate V2, to change the format of dates using c# client

I have a problem related to Google Translate. I am using Google.Cloud.Translation.V2 in c# application following code can re produce the problem I am facing var client = TranslationClient.Create(...
Ali Adnan's user avatar
0 votes
0 answers
49 views

Any idea why google translate API doesn't return characters containing diacritics when API is called from a java app?

I am trying to use the google translate public API endpoint to translate a handful of words from english to romanian, and while doing this I've noticed that when I am calling this endpoint from by ...
Yonoss's user avatar
  • 1,282
0 votes
0 answers
108 views

How to check for RateLimitException error with Stichoza GoogleTranslate?

I have been using Stichoza GoogleTranslate for days with no problem. Suddenly I got the RateLimitException error. I want to test for that error in Laravel php before it stops the script. Here is the ...
Paul Godard's user avatar
  • 1,065
1 vote
0 answers
51 views

python SSL ConnectError Help TT

Exception has occurred: ConnectError [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002) ssl.SSLCertVerificationError: [SSL: ...
omgflutt's user avatar
0 votes
0 answers
112 views

google-translate api returns SyntaxError: Unexpected token < in JSON at position 0

I used a simple code to translate strings using @iamtraction/google-translate const translate = require('@iamtraction/google-translate'); module.exports = function({ string, from, to }) { return ...
Raol mAX's user avatar
1 vote
1 answer
121 views

How to disable Google translate for HTML Class names

I'm running through to ignoring html class name translation. I'm finding out the following solution <span class="notranslate">this text will not be translated</span> But I want ...
Saravana's user avatar
  • 3,410
0 votes
1 answer
241 views

Prevent Google Translate from translating a variable

I see Google Translate, both the web interface and API translates a variable like '{userName}'. Is there a way to preserve the variable as it is? Context: I have a Flutter project with localization ...
Tom's user avatar
  • 129
-1 votes
1 answer
46 views

Google Translate for nlp Dataset

I have been trying to work on a NLP dataset and want to use the google translate for oversampling purpose. I have reduced the length of text in each row to 4000 characters but when I try to translate ...
user22031507's user avatar
0 votes
0 answers
193 views

Google Translate module randomly throws "the JSON object must be str, bytes or bytearray, not NoneType"

I use Google Translate in Python and found this bug in my code. I copy here a minimal reproducible example: import time from googletrans import Translator as google_Translator class Translator: ...
miguelmorin's user avatar
  • 4,919
0 votes
0 answers
51 views

credentials on google cloud translate services

I'm making a desktop application using python, this application needs to get get to google cloud translation service. On my computer I use the Application Default Credentials (ADC) to access the ...
Abd Alhaleem Bakkor's user avatar

1
2 3 4 5
38