Rename qualityName to label
This commit is contained in:
6
src/js/controls.js
vendored
6
src/js/controls.js
vendored
@ -695,13 +695,13 @@ const controls = {
|
|||||||
|
|
||||||
case 'quality':
|
case 'quality':
|
||||||
if (utils.is.number(value)) {
|
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 `${value}p`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return qualityName;
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
return utils.toTitleCase(value);
|
return utils.toTitleCase(value);
|
||||||
|
Reference in New Issue
Block a user