Skip to content

Add Machine Translated Subtitles to YouTube#609

Closed
IanDesuyo wants to merge 2 commits intokillergerbah:mainfrom
IanDesuyo:yt-translate
Closed

Add Machine Translated Subtitles to YouTube#609
IanDesuyo wants to merge 2 commits intokillergerbah:mainfrom
IanDesuyo:yt-translate

Conversation

@IanDesuyo
Copy link
Copy Markdown

Implementation of #460 and #521

By adding &tlang=LANG_CODE after track.baseUrl, we can get machine translated subtitles for the videos.

This PR is not yet complete. I will continue to work on it.

TODO:

  • Get machine translated subtitles
  • Select target language
    • Language selection in settings UI (or depending on settings/YouTube language?)
    • Pass language into youtube-page.ts

Preview:
image
image

@JeffAlyanak
Copy link
Copy Markdown

Definitely a cool feature! This may already be on your radar, but I'd suggest making the drop-down option more clearly labeled as auto-translated.

The quality of auto-translation can be really low for some languages and I think it's important that users are not unaware that they're selecting an auto sub track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants