Open ghost opened 9 months ago
Same on macOS Monterey.
Ok I am not sure if the developers still working on this project or not.
I found it comes from the embedded google translate.
At app/index.html
they are calling to this url https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit
which is deprecated by Google
source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076
Error:
DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist.
at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499)
at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38)
at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91)
at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244)
at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9)
at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468)
at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497
at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502
at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4
I am not sure if it possible to fix it from the code or we need to replace this translation resource. If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.
You have to disconnect from the internet when you start the app. I was in the process of fixing this issue but my laptop broke so it's going to be a while before I can fix this.
Ok I am not sure if the developers still working on this project or not. I found it comes from the embedded google translate. At
app/index.html
they are calling to this urlhttps://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit
which is deprecated by Google source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076Error:
DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist. at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499) at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38) at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91) at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244) at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9) at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468) at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497 at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502 at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4
I am not sure if it possible to fix it from the code or we need to replace this translation resource. If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.
Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.
@Trevelopment
Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.
You can try but i don't think that it will work with electron because they want your domain to your website. Probably they are adding your website to a whitelist or something like that
Form: sign up with our form Source: https://developers.google.com/search/blog/2020/05/google-translates-website-translator
The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English.
[app/index.html]
if (navigator.onLine) {
// var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
var translateUrl = "https://foo.example.com/"
The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English. [app/index.html]
if (navigator.onLine) {
// var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
var translateUrl = "https://foo.example.com/"
Yes it is the same as disabling the translation feature. I mentioned it above it is possible to do it but it will kill the feature