diff --git a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx index fbddcc1f60..7523259318 100644 --- a/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx +++ b/web/app/components/plugins/reference-setting-modal/auto-update-setting/plugins-picker.tsx @@ -24,25 +24,30 @@ const PluginsPicker: FC = ({ const { t } = useTranslation() const hasSelected = value.length > 0 const isExcludeMode = updateMode === AUTO_UPDATE_MODE.exclude + const handleClear = () => { + onChange([]) + } return (
{hasSelected ? (
{t(`${i18nPrefix}.${isExcludeMode ? 'excludeUpdate' : 'partialUPdate'}`, { num: value.length })}
-
Clear all
+
{t(`${i18nPrefix}.operation.clearAll`)}
) : ( )} - + {hasSelected && ( + + )}
) diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts index 95db4f5cf8..0ec51d4350 100644 --- a/web/i18n/zh-Hans/plugin.ts +++ b/web/i18n/zh-Hans/plugin.ts @@ -155,6 +155,12 @@ const translation = { exclude: '选定的插件将不会自动更新', partial: '仅选定的插件将自动更新。目前未选择任何插件,因此不会自动更新任何插件。', }, + excludeUpdate: '以下 {{num}} 个插件将不会自动更新', + partialUPdate: '仅以下 {{num}} 个插件将自动更新', + operation: { + clearAll: '清除所有', + select: '选择插件', + }, nextUpdateTime: '下次自动更新时间: {{time}}', pluginDowngradeWarning: { title: '插件降级',