K-Francis-H / libretranslate-unofficial-ff-extension

An unofficial Firefox extension for the LibreTranslate API
GNU Affero General Public License v3.0
14 stars 0 forks source link

Translation with Alt not working? #3

Open programmeruser2 opened 11 months ago

programmeruser2 commented 11 months ago

Hello, I have the latest version of this extension installed from the Firefox add-on store. When I highlight some text and hold Alt for a while, nothing happens, and the same thing happens if I press Alt briefly. It seems like the extension isn't even sending out a request for translation, so I think it's a problem with detecting the Alt key instead of another problem (or I'm using this completely wrong).

K-Francis-H commented 11 months ago

I've also noticed some issues with the hold Alt to translate features. It struggles to handle large chunks of text so I try not to give it more than a sentence at a time. The bottleneck is probably the limited CPU and RAM resources of the server I have it hosted on. I did most of my testing on Wikipedia where it seemed to work alright as long as I kept the highlighted section small. If I get a chance I can take a look at it and see if its a problem with the extension or that the server is too slow for larger translation requests. You could try using a different API from the public list in the extension settings or try hosting your own instance of LibreTranslate with more resources on localhost and direct the extension to use that and see if that works more reliably.

programmeruser2 commented 11 months ago

Huh, I don't see a network request being sent for some reason. I don't know if I didn't press alt correctly or if something is going wrong.