jelmervdl / translatelocally-web-ext

TranslateLocally for the Browser is a web-extension that enables client side in-page translations for web browsers.
https://addons.mozilla.org/en-GB/firefox/addon/translatelocally-for-firefox/
Mozilla Public License 2.0
65 stars 3 forks source link

Manifest v3 compatibility #73

Open jelmervdl opened 1 year ago

jelmervdl commented 1 year ago

Use manifest v3 for Firefox, and Chrome.

In Chrome, we use chrome.offscreen to have access to Worker. Unfortunately, that means yet another layer of indirection: Translations now go from the page -> content-script -> background-script -> offscreen script -> worker -> wasm runtime 😭

Todo:

What I'd really really like:

jelmervdl commented 1 year ago

For some reason you need to enable the access to statmt and translatelocally explicitly. Quite annoying. I wonder if that's something missing in the installation flow because I'm running in developer mode or not.

Screenshot 2023-07-19 at 14 15 40