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

Always translate selected sites #68

Closed jelmervdl closed 1 year ago

jelmervdl commented 1 year ago

Right now, if you open a page in a new tab, you have to re-enable translation for that tab + domain combination.

It would be helpful if you select to always translate a certain domain, regardless of whether you enabled translation in that current tab this session.

Ideas:

  1. Have a check-box toggle in the popup to enable/disable it for the current domain 1.1. only shows after you've started translating a page[^1] 1.2. should it also remember your from-language selection?
  2. Have a list/table of domains for which you've enabled this feature in the settings UI to make it easy to remove them again. Bit like the "Manage exceptions" for cookie settings[^2]

Considerations:

  1. It should be easy to identify that a page is currently being translated. 1.1. We should probably add some sort of indicator to the button. 1.2. Putting some sort of overlay on the website is also an option, but I feel like that would be more annoying more often.
  2. It should be easy to temporarily turn off 2.1. The current Show Original button is sufficient for this I think.
  3. It should be easy to permanently turn off 3.1. If auto-translate is turned on, the toggle in the popup should always be visible to give you the option to turn it off 3.2. You can also turn if off from the settings page if you don't wish to visit the page and trigger the translation.

[^1]: Screenshot 2023-04-06 at 15 44 07

[^2]: image