1
0
Fork 0

Fix player back button label

This commit is contained in:
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)