fix: i18n `current`

This commit is contained in:
DIYgod 2024-01-30 21:25:35 +08:00
parent 73fa639305
commit 3343b05f9e
No known key found for this signature in database
3 changed files with 8 additions and 2 deletions

View File

@ -145,5 +145,8 @@
},
"preview": {
"message": "Preview"
},
"current": {
"message": "Current"
}
}

View File

@ -145,5 +145,8 @@
},
"preview": {
"message": "预览"
},
"current": {
"message": "当前"
}
}

View File

@ -146,13 +146,13 @@ export function getPageRSSHub(data: {
(parsed) => {
if (parsed) {
result.push({
title: formatBlank(rules[domain]._name ? 'Current' : '', rule[recog.handler].title),
title: formatBlank(rules[domain]._name ? chrome.i18n.getMessage('current') : '', rule[recog.handler].title),
url: '{rsshubDomain}' + parsed,
path: parsed,
});
} else {
result.push({
title: formatBlank(rules[domain]._name ? 'Current' : '', rule[recog.handler].title),
title: formatBlank(rules[domain]._name ? chrome.i18n.getMessage('current') : '', rule[recog.handler].title),
url: rule[recog.handler].docs,
isDocs: true,
});