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.
1,859
questions
0
votes
0
answers
25
views
Using API of Google Translate
I'm trying to translate a paragraph through the Google Translate API from English to Hebrew
The paragraph is:
Get ready for a fun-filled family holiday in Gran Canaria. This Gran Canaria Family TUI ...
0
votes
1
answer
39
views
Google Cloud Translate vs Python googletrans
I have been thinking about developing a new product which has to be capable of translating text to several different languages. While I was doing my research, I have found the Python library named &...
0
votes
0
answers
35
views
How can id create a {display:none} css code, by html delete element in developer tools
I using google-translate in my website and it showing hover balloon-frame "original text"! but i realy don't want to showing that balloon-frame box! and need to hide it!
This is the only bad ...
0
votes
0
answers
13
views
How do I integrate Google Cloud Translate API into TalentLMS customized Javascript code?
I publish the courses in TalentLMS and need to integrate an automatic translation using Google Cloud API. Via theme settings I can access the Javascript code where I could inject code with post ...
0
votes
1
answer
21
views
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 https://...
0
votes
1
answer
40
views
Python script fails to scrap website using googletrans library and panda
I need some help, i have a script that translate title course and name. I am using pandas that uses data frame but its fails to compile and will share the issue i am getting on terminal.
// Terminal ...
1
vote
1
answer
41
views
google translate API bottleneck
I'm currently working on an ETL pipeline and it takes too long to run after checking which part of the code takes the longest I found this:
I'm using the Google Cloud Translate API to translate ...
-1
votes
0
answers
35
views
How to fix this problem ModuleNotFoundError: No module named 'urllib2'?
I have a problem, at first had an issue with my libraries for using googletrans. then made a fix by using following open googletrans.py and put print(translation.encode(encoding)) and saved. The ...
0
votes
0
answers
9
views
Delete alignment style props of translation from google translate API
After translating text from LTR to RTL, I'm getting extra style properties regarding text direction.
How can I avoid that or remove with JS code?
This is the resulting code:
\u003ch2 style=\";...
0
votes
0
answers
14
views
listSupportedLanguages() function throws an exception
I am using Google Translation API 2.11.0 and trying to get supported languages with listSupportedLanguages() which throws the following exception for some of the languages, including, for example, ...
0
votes
0
answers
31
views
google translate webpage after clicking icon error
I'm trying to add google translate to my website. I would like to hide the default lang dropdown list and translate the page to english with a click on an icon. But I have an error I can't get over ...
0
votes
0
answers
49
views
How do I set the display language of the Google Translate website widget?
I can't for the life of me seem to find an answer to this anywhere and documentation is scarce.
Regarding the Google Translate for website translation "widget", this is the typical code ...
0
votes
1
answer
35
views
The google translate widget has changed and seems to be broken. Has anyone been able to come up with a fix?
As of 2023 the Google Translate Widget seems to have changed and be slightly broken also.
Those of us who hide the actual widget and interact with it via our own custom interfaces will really notice ...
0
votes
0
answers
137
views
How can I translate html files using python and google translate
I am trying to translate a web page (I have to do it using python and google translate). I already downloaded the content of the page using httrack. For purposes of summarizing the problem, suppose ...
1
vote
0
answers
642
views
Any idea on how i can scrape a website one level deep then translate the pages using Google translate say from(English to French)
So essentially what i need to do is to scrape a website one level deep(ie the current website and every link on the page) store them in a folder,then translate using Google translate
I tried using ...
0
votes
0
answers
28
views
Diff errors with PageTitle when using google translate in Blazor WASM
Many browsers have built in features for translating a page. When users try this in my app however, it results in errors when navigating to a different page. This is the type of error that occurs: (...
0
votes
0
answers
30
views
Make Google Translator Widget Language Labels in English
I am using a google translator widget on my website. Script below.
var showAllGTLanguages=false;
var listOfGTLanguage="zh-CN,th,ru,en";
function googleTranslateElementInit() {
...
0
votes
0
answers
68
views
How to hide Google Translate toolbar popup?
I need to hide Google translate toolbar that appears after the user selects a language.
I did my research and most answers point use the following code to hide the popup:
.skiptranslate {
display:...
0
votes
0
answers
24
views
google translate working fine in local but when added to staging on build it gives error as failed to load script
I am using angular 9 in my project. Recently client needed google translate for the project. I added the below code in my index.html file after body tag.
<section class="lang_section">
...
0
votes
1
answer
51
views
Set google translate to translate name as it sounds
Well I want to translate a person name from arabic or hebrew to english.
but if the name has a meaning, so the translation result will be the meaning, and not the name pronunciation, which is what I ...
2
votes
1
answer
73
views
API call for each using JS
I am using Google API and JS click outside to convert the first input into targeted language.
I want to convert into multiple language from first input, I have added another Targeted language as URDU.
...
0
votes
1
answer
27
views
Anyone uses the google-translate service from the Moodle plugin https://moodle.org/plugins/filter_fulltranslate
i have installed a plugin in Moodle that is ment to translate textstrings into different (installed) languages.
The installation did work, registering with Google-Cloud and getting an API-Key did work ...
0
votes
0
answers
46
views
SSL Certification Error in deep-translator libary
deep_translator version: 1.9.1
Python version: 3.9
Operating System: Win 11
My Code:
from deep_translator import GoogleTranslator
translator = GoogleTranslator(source='en', target='pt')
data = 'my ...
5
votes
0
answers
292
views
google.translate.SectionalElement is not a constructor
Did Google remove google.translate.SectionalElement?
Сode like below stopped working:
<script>
function googleSectionalElementInit() {
new google.translate.SectionalElement({
...
0
votes
0
answers
21
views
Is there a Translation data/reporting hub?
I would like to see how many times my site was translated and into what languages by month or quarter. Is there a reporting service that provides this data?
I can report on IP address locations so I ...
0
votes
0
answers
11
views
Sentences in a book is not translated in Google play books
After uploading a pdf file written in another language to the Google play books, I tried to understand the meaning of a certain sentence by translating the sentence to my own language by tapping on ...
0
votes
0
answers
63
views
How to translate the content of a PDF file and then replace it with the translated content?
I know how to use the Google Translate API. I want to know one thing do you have an idea to translate the PDF file without losing in the file format. I had tried to convert the PDF file to DOCX and ...
0
votes
0
answers
123
views
Getting "SSL certificate error" using google translate in python
I am currently working on an automation project and using google translate to convert the text from one language to another. I have been working on this project for 3-4 months now but recently I am ...
1
vote
0
answers
109
views
Setting a default language for google translate
I am using google translate for my Core PHP project.The issue I am facing is when I set english as a default language i.e. if any user opens the website in any other country the default language pf ...
0
votes
0
answers
71
views
How to get over "Error: 8 RESOURCE_EXHAUSTED"?
I am trying to parse XML file and then translate the content.
When I pass large XML file, I get this error:
8 RESOURCE_EXHAUSTED: Quota Error: RESOURCE_EXHAUSTED Quota exceeded for quota metric 'v2 ...
0
votes
0
answers
38
views
Python: Extracting Translated Text from Google Translation URL using Beautiful Soup without Selenium
I have two functions:
One that converts a thread URL into a Google Translation version.
One that extracts the text from a web page with Beautiful Soup.
My problem:
The text that is extracted is the ...
0
votes
0
answers
32
views
How to call Google translate dropdown on change programmatically
I have created simple google translate dropdown for my website used this solution from w3schools https://www.w3schools.com/howto/howto_google_translate.asp this is working fine.
I have tried solution ...
0
votes
0
answers
30
views
"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.
1
vote
0
answers
36
views
How to change dropdown language? my language always show Bangla in dropdown
I am using google translate to translate the next js app. but problem is my dropdown menu item always show in bangla. How to convert bangla to English in dropdown.
My code:
const ...
0
votes
0
answers
93
views
Googletrans - AttributeError: 'NoneType' object has no attribute 'group' (python)
Trying to detect language code in Python using googletrans. But it generating ERROR (Refer error block for info).
I read the article below about google trans and did it same thing but still same error ...
0
votes
1
answer
30
views
Add expression translate="no" in the HTML tag using JS
How can I add in the tag the expression translate="no", using JavaScript?
The tag should be like this:
Tried the code below:
var root = document.getElementsByTagName( 'html');
root....
0
votes
1
answer
64
views
Pricing for google translate api
one of our clients want to use google translate in its web application which is built in asp.net C#. First of all, is its free version or paid version?
I found one reference and we have already tried ...
0
votes
0
answers
104
views
React-i18next and Google Translate extension
I have a website available in 'en' and 'fr' using react-i18next.
When loading the Website, I check the browser settings with Javascript to detect the preferred language of the user (navigator....
1
vote
1
answer
37
views
Is it safe to call google cloud translate api directly from react-native without a backend?
I am building an app in react-native in which it is necessary to translate texts dynamically, but it has not even been necessary to implement a backend, since everything is done directly from the app.
...
-1
votes
1
answer
55
views
It is advisable using libraries like @vitalets/google-translate-api or translate directly from react-native?
I am testing these "translate" and "google-translate-api" libraries, they are fantastic, I can translate to all google translate languages directly in react-native, but they can ...
0
votes
0
answers
47
views
Translate an entire page with Google Translate API
I'm using the google Translate API to translate content that's inside an IFRAME. When using the API, I notice that it returns a array(string) with the translated texts, but when inserting it in the ...
0
votes
0
answers
104
views
better dark mode for google translate with dark reader
In light mode, when I hover over a word ( without selecting ), the entire background color of the paragraph turns light blue 👇.
but when I turn on dark mode (using dark reader extension) it is hard ...
0
votes
0
answers
92
views
Google Translate set default to French is not working
I have added this code to change my web page default language as 'fr' but it is not changing the content in 'fr' and showing in English.
<div id="google_translate_element" style="...
0
votes
0
answers
47
views
React native google translate ap i(@vitalets/google-translate-api)
const test = async () => {
try {
const { text } = await translate("dynamic text", {
to: "mr",
}
);
} catch (error) {
console.error(error);
}
}
[TypeError: ...
1
vote
1
answer
124
views
translate.googleapis.com returns "Uncaught DOMException: An invalid or illegal string was specified"
I have a problem with adding Google Translate plugin to my webpage. It works well in Chrome but it does not in Firefox. I added this code into my HTML:
<div id="google_translate_element" ...
0
votes
0
answers
11
views
Google translate embed , can I have it always visible
I have installed the Google translate on my web page, but the translate panel only appears at the top of the screen when someone hits a language. Is there any way for the panel to appear on loading?
...
0
votes
0
answers
45
views
Is there a SEP token in google translate API?
Is there a SEP token in google translate API?
Or any other predefined tokens in the API?
I hope to know for advanced fine-tuning of google translation model.
0
votes
1
answer
193
views
Multi Language Translator Project In Python
I am new to python programming language and I am currently learning to code in python. Currently I am developing a project in python named Translator(Multi-Lang) where it will function same as our ...
0
votes
1
answer
43
views
how to fetch content of a webpage post-translation (after window.load event??)
I'm currently coding a Flask application with a simplified version of my code below.
#app.py
from flask import Flask, render_template, request
# Configure application"'
app = Flask(__name__)
# ...