SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
386 stars 49 forks source link

Translate Service for chatting #147

Open AnisTaluqdar opened 1 year ago

AnisTaluqdar commented 1 year ago

If you can add the Google Translate service it will be amazing as https://imem.app/ they add for telegram client.

It's really helpful when it comes to chatting with outside the world who don't know English.

SpiritCroc commented 1 year ago

As long as there is no reasonable way to do something like this with FOSS-only components, no.

SpiritCroc commented 1 year ago

(I'm not really motivated to look into it if there is a feasible FOSS-approach, but I guess I can make this open-for-contributions though)

lfom commented 1 year ago

Possible FOSS alternatives:

https://github.com/thedaviddelta/lingva-translate

https://github.com/LibreTranslate/LibreTranslate

williamkray commented 1 year ago

translation shouldn't be part of the client, there are bots that do this and can be added to rooms to assist with translation.

SpiritCroc commented 1 year ago

Hosting a translation service on SchildiChat servers is out-of-scope for us. If we'd add something that requires server access, I may only accept it if:

Anyways, since I'm not interested in maintaining such feature, I'd probably only accept something with a low code footprint, e.g. by use of some well maintained library and/or APIs to query (maybe there's something similar to how UnifiedPush allows you to choose a distributor?).

AnisTaluqdar commented 1 year ago

what about https://libretranslate.com/ ? Is still self hosted?

or maybe https://github.com/thedaviddelta/lingva-translate or this https://github.com/crow-translate/crow-translate

lfom commented 1 year ago

For single message translation I think Lingva would be a good option, the API key could be added/edited in Schildi settings. For full automatic chat translation, then probably a bot is a better idea, and riskier too.

AnisTaluqdar commented 1 year ago

possible design

https://user-images.githubusercontent.com/41234183/230149031-2bf43922-1ccd-4621-ab80-7300a7880f38.mp4