TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
29.43k stars 2.95k forks source link

Please build a translator into NewPipe. #11073

Open Nope2333 opened 1 month ago

Nope2333 commented 1 month ago

Checklist

Feature description

Why not integrate Google Translate or other translation tools into NewPipe to translate comments or subtitles? This built-in translator should be able to translate comments and even subtitles in real time.

Why do you want this feature?

There is no translation tool in the comment section within the app, and comment text does not support copying, which makes it impossible to translate comments in English or other languages ​​into Simplified Chinese or other languages. Second, adding a built-in translation tool can achieve real-time subtitle translation. This is very important, as some users, especially those in mainland China, are eager to use the real-time subtitle translation function.

Additional information

No response

opusforlife2 commented 1 month ago

and comment text does not support copying

Have you tried long-pressing it?

Nope2333 commented 1 month ago

OK, I tried it again, and long pressing does work. But relatively speaking, it would be more convenient to have a built-in translation tool, like the one in Twitter.

opusforlife2 commented 1 month ago

Twitter is a web service, which handles everything for you. Newpipe is a client, and it will have to phone home to whatever translation service is used, every time. So fair warning that this likely won't be implemented because of privacy reasons.

Nope2333 commented 1 month ago

Ok, but it's still inconvenient not to have a built-in translation tool like the Twitter Android client. I've used some third-party Twitter clients, and they also have third-party clients, probably because those clients use Twitter's API.

opusforlife2 commented 1 month ago

Again, that's all handled by Twitter's website. Those apps don't personally query translation services in order to fetch translations. They just tell Twitter "give me that translated text" and it does.

Doc-4 commented 2 weeks ago

Google's translate app can run entirely offline once you install language packs and can be accessed from many apps by selecting text and pressing an added option in the context menu.

I agree accessing web services for this seems an irrelevant feature that isn't appropriate to implement directly in the app, but perhaps a compromise is allowing selection of comment text for the purpose of using the context menu for translation, or triggering the share menu. Long pressing a comment already triggers copy, which on newer android versions has the option to then share to another app as well.