jelmervdl/translatelocally-web-ext

Youtube breaks on navigation

Closed this issue · 2 comments

We've discussed this in Slack, opening here so information survives slack limits with an older screenshot. Assuming still not solved.

image

It seems Youtube references specific elements from Javascript and when translation comes in and replaces those elements, the references are lost. So elements are not updated when you go to a new video (because really you’re staying on the same page, javascript just tries to replace all the content)

Support has improved since v0.2.0 which re-uses existing HTML tags. In d3851b4 I started ignoring <template> tags which fixed the comments being translated. As far as I can tell, somewhere along the way the buttons becoming empty has also been fixed.

Still broken:

  • Video title (right below the video) is not updated while navigating Youtube
  • Video description is not being translated while navigating Youtube

Google Chrome using Google Translate also fails to translate Youtube apparently. I'm still not sure what Youtube does but it is probably not very common.
image