Skip to content

Commit

Permalink
fix: don't let the player be translated except captions (#7474)
Browse files Browse the repository at this point in the history
This is another follow-up to #6699.

Potentially, it means we could get rid of #6977
  • Loading branch information
gkatsev authored Nov 9, 2021
1 parent b061491 commit bcd80f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ class Player extends Component {
// if it's been set to something different to the doc
this.el_.setAttribute('lang', this.language_);

this.el_.setAttribute('translate', 'no');

this.el_ = el;

return el;
Expand Down
1 change: 1 addition & 0 deletions src/js/tracks/text-track-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class TextTrackDisplay extends Component {
return super.createEl('div', {
className: 'vjs-text-track-display'
}, {
'translate': 'yes',
'aria-live': 'off',
'aria-atomic': 'true'
});
Expand Down

0 comments on commit bcd80f9

Please sign in to comment.