Rename qualityName to label
This commit is contained in:
parent
a8fa125a96
commit
56668f58b6
6
src/js/controls.js
vendored
6
src/js/controls.js
vendored
@ -695,13 +695,13 @@ const controls = {
|
||||
|
||||
case 'quality':
|
||||
if (utils.is.number(value)) {
|
||||
const qualityName = i18n.get(`qualityName.${value}`, this.config);
|
||||
const label = i18n.get(`qualityLabel.${value}`, this.config);
|
||||
|
||||
if (!qualityName.length) {
|
||||
if (!label.length) {
|
||||
return `${value}p`;
|
||||
}
|
||||
|
||||
return qualityName;
|
||||
return label;
|
||||
}
|
||||
|
||||
return utils.toTitleCase(value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user