mirror of https://github.com/Chocobozzz/PeerTube
Fix player back button label
parent
44eedafed4
commit
00b1adab86
|
@ -206,7 +206,9 @@ class SettingsMenuItem extends MenuItem {
|
|||
createBackButton () {
|
||||
const button = this.subMenu.menu.addChild('MenuItem', {}, 0)
|
||||
|
||||
button.setAttribute('aria-label', this.player().localize('Go back'))
|
||||
button.addClass('vjs-back-button');
|
||||
|
||||
(button.el() as HTMLElement).innerHTML = this.player().localize(this.subMenu.controlText())
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,8 @@ const playerKeys = {
|
|||
'Autoplay is suspended': 'Autoplay is suspended',
|
||||
'{1} (from edge: {2})': '{1} (from edge: {2})',
|
||||
'Disable subtitles': 'Disable subtitles',
|
||||
'Enable {1} subtitle': 'Enable {1} subtitle'
|
||||
'Enable {1} subtitle': 'Enable {1} subtitle',
|
||||
'Go back': 'Go back'
|
||||
}
|
||||
Object.assign(playerKeys, videojs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue