From fc61fd0f5030d9553dd937a9b79ab3b053e7b45e Mon Sep 17 00:00:00 2001 From: JzoNg Date: Sat, 12 Oct 2024 17:08:45 +0800 Subject: [PATCH] action list --- .../plugins/plugin-detail-panel/action-list.tsx | 10 ++++++++-- .../components/plugins/plugin-detail-panel/index.tsx | 6 +++--- web/i18n/en-US/plugin.ts | 1 + web/i18n/zh-Hans/plugin.ts | 1 + 4 files changed, 13 insertions(+), 5 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 f7419406d3..452018cdd8 100644 --- a/web/app/components/plugins/plugin-detail-panel/action-list.tsx +++ b/web/app/components/plugins/plugin-detail-panel/action-list.tsx @@ -1,9 +1,15 @@ import React from 'react' +import { useTranslation } from 'react-i18next' const ActionList = () => { + const { t } = useTranslation() return ( -
-

Action List

+
+
{t('plugin.detailPanel.actionNum', { num: 3 })}
+
+
Notion Page Search
+
A tool for performing a Google SERP search and extracting snippets and webpages.Input should be a search query.
+
) } diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx index c953e45098..b118a8c8f5 100644 --- a/web/app/components/plugins/plugin-detail-panel/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/index.tsx @@ -24,8 +24,8 @@ import Loading from '@/app/components/base/loading' import cn from '@/utils/classnames' import { // extensionDallE, - modelGPT4, - // toolNotion, + // modelGPT4, + toolNotion, } from '@/app/components/plugins/card/card-mock' type Props = { @@ -57,7 +57,7 @@ const PluginDetailPanel: FC = ({ const detail = await fetchPluginDetail(org, name) setPluginDetail({ ...detail, - ...modelGPT4, + ...toolNotion, } as any) setLoading(false) } diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts index 26aea309ba..7779d09830 100644 --- a/web/i18n/en-US/plugin.ts +++ b/web/i18n/en-US/plugin.ts @@ -12,6 +12,7 @@ const translation = { remove: 'Remove', }, modelNum: '{{num}} MODELS INCLUDED', + actionNum: '{{num}} ACTIONS INCLUDED', }, } diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts index 3597f07784..9a65f7af7d 100644 --- a/web/i18n/zh-Hans/plugin.ts +++ b/web/i18n/zh-Hans/plugin.ts @@ -12,6 +12,7 @@ const translation = { remove: '移除', }, modelNum: '{{num}} 模型已包含', + actionNum: '{{num}} ACTIONS 已包含', }, }