Add i18n support for "Normal" value in speed options

This commit is contained in:
Daniel Sarin 2018-04-11 15:39:23 +03:00
parent a15d1c9f1c
commit 3e57a87bf7
3 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ i18n: {
captions: 'Captions',
settings: 'Settings',
speed: 'Speed',
normal: 'Normal',
quality: 'Quality',
loop: 'Loop',
start: 'Start',

2
src/js/controls.js vendored
View File

@ -511,7 +511,7 @@ const controls = {
getLabel(setting, value) {
switch (setting) {
case 'speed':
return value === 1 ? 'Normal' : `${value}×`;
return value === 1 ? i18n.get('normal', this.config) : `${value}×`;
case 'quality':
if (utils.is.number(value)) {

View File

@ -177,6 +177,7 @@ const defaults = {
captions: 'Captions',
settings: 'Settings',
speed: 'Speed',
normal: 'Normal',
quality: 'Quality',
loop: 'Loop',
start: 'Start',