i18n: styleMetaErrorPreprocessor

This commit is contained in:
eight 2017-11-09 08:56:25 +08:00
parent 09e7d67dd2
commit 7842ac752a
2 changed files with 10 additions and 1 deletions

View File

@ -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": { "styleMetaErrorSelectValueMismatch": {
"message": "Invalid @select: value doesn't exist in the list", "message": "Invalid @select: value doesn't exist in the list",
"description": "Error displayed when the value of @select is invalid" "description": "Error displayed when the value of @select is invalid"

View File

@ -403,7 +403,7 @@ var usercss = (() => {
let builder; let builder;
if (preprocessor) { if (preprocessor) {
if (!BUILDER[preprocessor]) { if (!BUILDER[preprocessor]) {
return Promise.reject(new Error(`Unsupported preprocessor: ${preprocessor}`)); return Promise.reject(chrome.i18n.getMessage('styleMetaErrorPreprocessor', preprocessor));
} }
builder = BUILDER[preprocessor]; builder = BUILDER[preprocessor];
} else { } else {