Fix player back button label
This commit is contained in:
parent
44eedafed4
commit
00b1adab86
2 changed files with 4 additions and 1 deletions
|
@ -206,7 +206,9 @@ class SettingsMenuItem extends MenuItem {
|
||||||
createBackButton () {
|
createBackButton () {
|
||||||
const button = this.subMenu.menu.addChild('MenuItem', {}, 0)
|
const button = this.subMenu.menu.addChild('MenuItem', {}, 0)
|
||||||
|
|
||||||
|
button.setAttribute('aria-label', this.player().localize('Go back'))
|
||||||
button.addClass('vjs-back-button');
|
button.addClass('vjs-back-button');
|
||||||
|
|
||||||
(button.el() as HTMLElement).innerHTML = this.player().localize(this.subMenu.controlText())
|
(button.el() as HTMLElement).innerHTML = this.player().localize(this.subMenu.controlText())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,8 @@ const playerKeys = {
|
||||||
'Autoplay is suspended': 'Autoplay is suspended',
|
'Autoplay is suspended': 'Autoplay is suspended',
|
||||||
'{1} (from edge: {2})': '{1} (from edge: {2})',
|
'{1} (from edge: {2})': '{1} (from edge: {2})',
|
||||||
'Disable subtitles': 'Disable subtitles',
|
'Disable subtitles': 'Disable subtitles',
|
||||||
'Enable {1} subtitle': 'Enable {1} subtitle'
|
'Enable {1} subtitle': 'Enable {1} subtitle',
|
||||||
|
'Go back': 'Go back'
|
||||||
}
|
}
|
||||||
Object.assign(playerKeys, videojs)
|
Object.assign(playerKeys, videojs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue