Feature #1129
openImplement Translate API
Added by ask low about 1 year ago. Updated 10 months ago.
0%
Description
Why I need¶
My friends & some of my family liked Privacy Browser, but they're expecting automatic webpage translate in native language script like how google does in chrome.
Possible Solution¶
There's LibreTranslate API
https://libretranslate.com/
Already used by minbrowser on linux.
Files
Libre Translate Google Analytics.png (496 KB) Libre Translate Google Analytics.png | Soren Stoutner, 11/28/2023 12:21 AM |
Updated by ask low about 1 year ago
If implemented, then we can add a domain setting for a default language to be translated in. And that page will always be translated in the selected language, even though it's loaded in a different one.
Updated by Soren Stoutner about 1 year ago
Using a cloud translation service has significant privacy implications. I cannot imagine that I would ever implement it into Privacy Browser.
Google has been working on implementing an on-device translation service.
https://developers.google.com/ml-kit/language/translation
If they ever integrated this with WebView I would be happy to enable it.
Updated by Soren Stoutner about 1 year ago
Just as a side note about LibreTranslate, they use Google Analytics to track you, which means that Google also gets all the tracking information. ;)
Updated by ask low about 1 year ago
Sad. Btw, on-device translation is only possible through AI with dedicated NPU (neural processing unit) on the device. If not, the whole dictionary translation mechanism offline locally takes a heck lot of storage.
Although, I hate AI so much. Not because it's taking our jobs, but because it's a black box. You throw your garbage data to it & it spits out the answer based on the prompt complexity. Such an absurd lazy idea.
Updated by Soren Stoutner 10 months ago
Google is making a lot of noise about implementing on-device translation. If they do that it can be integrated with WebView, then I would love to enable it in Privacy Browser.
https://support.google.com/translate/answer/6142473?hl=en&co=GENIE.Platform%3DAndroid
Updated by Soren Stoutner 10 months ago
It all depends on how Google ends up implementing it. As it is, it is not open source and there is no way to integrate it with WebView. But that might change.
Updated by Soren Stoutner 10 months ago
If it is a non-free service, I will not use it. But if it becomes a standard, open Android API, then I would use it. And F-Droid would not have any problem with that (in fact, a lot of F-Droid apps would probably use it).
Updated by Soren Stoutner 10 months ago
That's what this is waiting on. It is one of the things Google teased with their release of the Tensor processor. Even if Google doesn't implement a FOSS on-device translator, someone else might.
Until then, Privacy Browser Android will not include any sort of built-in translation, because using any type of service compromises the privacy of the users.