From 6d2b2d7810cda30816731f01b679ef75c8e42388 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 20 Dec 2024 11:27:52 +0800 Subject: [PATCH] fix number of tool actions --- .../components/plugins/plugin-detail-panel/action-list.tsx | 2 +- web/app/components/tools/provider/detail.tsx | 4 ++-- web/context/app-context.tsx | 2 +- web/i18n/en-US/plugin.ts | 2 +- web/i18n/en-US/tools.ts | 2 +- web/i18n/zh-Hans/plugin.ts | 2 +- web/i18n/zh-Hans/tools.ts | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/action-list.tsx b/web/app/components/plugins/plugin-detail-panel/action-list.tsx index 53c97b3a76..46818d40f5 100644 --- a/web/app/components/plugins/plugin-detail-panel/action-list.tsx +++ b/web/app/components/plugins/plugin-detail-panel/action-list.tsx @@ -59,7 +59,7 @@ const ActionList = ({
- {t('plugin.detailPanel.actionNum', { num: data.length })} + {t('plugin.detailPanel.actionNum', { num: data.length, action: data.length > 1 ? 'actions' : 'action' })} {provider.is_team_authorization && provider.allow_delete && (