th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
6.98k stars 424 forks source link

[Feature Request]: Lyrical Translation #2195

Open m-krastev opened 3 days ago

m-krastev commented 3 days ago

Preflight Checklist

Problem Description

Current lyrical plugins work decently well at providing lyrics for a lot of songs. Unfortunately, sometimes songs are in a language people are only partially or not at all fluent in.

Proposed Solution

I would suggest an additional plugin that uses Google Translate API (or similar), detecting whether the song is in a language the user is familiar with (via user setting), and if not, calling the API to translate it.

For some quick and dirty solutions for the API:

Alternatives Considered

Otherwise, the user could manually go into Google Translate and copy-paste the lyrics, but I think going outside the app for this is not the best experience (especially if at some point we might want to have lyrics tied to the app design in some way).

Additional Information

No response