SimonBrazell / privacy-redirect

A simple web extension that redirects Twitter, YouTube, Instagram & Google Maps requests to privacy friendly alternatives.
GNU General Public License v3.0
2k stars 113 forks source link

LibreTranslate Redirect #396

Open SethFalco opened 2 years ago

SethFalco commented 2 years ago

As a Google Translate alternative, could LibreTranslate be added?

LibreTranslate is a free and open-source and self-hostable cloud translation service.

It doesn't have as wide language support, so I think the ideal implementation would only move the base URL, or if the URL already has query params, then only if the languages are ones actually supported by the LibreTranslate instance. (Accessible via the API.)


PS: I know this is currently unmaintained, I just wanted to jot this down in case it gets maintained again, or to look into forks and implement it there instead.

Edit: The fork LibRedirect already handles this well.

ghost commented 2 years ago

As an alternative, the Linguist browser extension has worked very well for me

https://github.com/translate-tools/linguist

You can add a custom LibreTranslate instance (either public or self-hosted) with the script here:

https://github.com/LibreTranslate/LibreTranslate/issues/55#issuecomment-1118987151

ManeraKai commented 2 years ago

It's already on LibRedirect: https://codeberg.org/LibRedirect/libredirect/commit/cd01a7083ced7f53c4d87e604f4edadce64ca49e