Merge pull request #887 from danielsarin/use-i18n-for-normal-speed

Add i18n support for "Normal" value in speed options
This commit is contained in:
Sam Potts 2018-04-11 22:43:47 +10:00 committed by GitHub
commit 9b7170834e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',