Closed pouyacodes closed 1 year ago
firefox-temp.zip chrome-temp.zip I raised a PR for fixing this issue, but if you want to use it and it blocks you, you can manually run the temp version. Load on the browsers: https://github.com/sienori/simple-translate#load-the-extension-in-chrome
Thanks! :heart: Looks like works and the issue is resolved. :+1:
Do I have to close the issue right now or wait until the next official release and your PR merged?
that file was a temporary fix, but the issue still exists until the changes are fixed. so it is better to wait.
Yes. Thanks.
This seems to have been fixed by a change in Google's API. Simple Translate also fixed with https://github.com/sienori/simple-translate/pull/507.
Recently I tried to use the extension and It doesn't work. I wonder about the cause of this problem. If you open the Console tab of the browser there is an error for the extension:
Looks like the extension can not read
terms
property frome
object. With a bit of search and exploration in the source code I realized thate
object andterms
come from Google Translate API and more specificallysendRequestToGoogle
function in the source code.The extension uses this Google Translator API endpoint and populate the required field and then fetchs data. Then function tries to read some field like
sentences
which contains the translation(s) anddict
for "word vocabulary" or something.Then I tried to send some random requests to this endpoint and check the result with code to make sure that the function read proper values from the data. For example:
and the response is:
But there is no
terms
field in the result. So I think perhaps Google changes something in the API.Also, my browser is Mozilla Firefox and the extension version that I use is
2.8.1
.Thanks!