Fix player back button label

pull/6449/head
Chocobozzz 2024-06-10 16:27:01 +02:00
parent 44eedafed4
commit 00b1adab86
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 1 deletions

View File

@ -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())
}

View File

@ -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)