i18n: styleMetaErrorPreprocessor
This commit is contained in:
parent
09e7d67dd2
commit
7842ac752a
|
@ -773,6 +773,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"styleMetaErrorPreprocessor": {
|
||||
"message": "Unsupported @preprocessor: $preprocessor$",
|
||||
"description": "Error displayed when the value of @preprocessor is not supported",
|
||||
"placeholders": {
|
||||
"preprocessor": {
|
||||
"content": "$1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"styleMetaErrorSelectValueMismatch": {
|
||||
"message": "Invalid @select: value doesn't exist in the list",
|
||||
"description": "Error displayed when the value of @select is invalid"
|
||||
|
|
|
@ -403,7 +403,7 @@ var usercss = (() => {
|
|||
let builder;
|
||||
if (preprocessor) {
|
||||
if (!BUILDER[preprocessor]) {
|
||||
return Promise.reject(new Error(`Unsupported preprocessor: ${preprocessor}`));
|
||||
return Promise.reject(chrome.i18n.getMessage('styleMetaErrorPreprocessor', preprocessor));
|
||||
}
|
||||
builder = BUILDER[preprocessor];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user