]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix "Off" player string localization
authorChocobozzz <me@florianbigard.com>
Thu, 21 Oct 2021 09:01:10 +0000 (11:01 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 21 Oct 2021 09:01:10 +0000 (11:01 +0200)
client/src/assets/player/videojs-components/settings-menu-item.ts
scripts/i18n/create-custom-files.ts

index 48fed0fd988cb3f2faef88a264e8ecca64aca460..d2716337350ac292a1ee60276e3cca1eb8fb6f67 100644 (file)
@@ -310,7 +310,7 @@ class SettingsMenuItem extends MenuItem {
             break
           }
 
-          this.settingsSubMenuValueEl_.innerHTML = subMenuItemUntyped.options_.label
+          this.settingsSubMenuValueEl_.innerHTML = this.player().localize(subMenuItemUntyped.options_.label)
         }
       }
     }
index b26e92d93dd9915fb53184e5da811b665759b715..b363a1bdcaf218ac467d90b17a98e06ff37e96ce 100755 (executable)
@@ -51,6 +51,7 @@ const playerKeys = {
   'Buffer Progress': 'Buffer Progress',
   'Buffer State': 'Buffer State',
   'Live Latency': 'Live Latency',
+  '  off': '  off',
   'Player mode': 'Player mode'
 }
 Object.assign(playerKeys, videojs)