From 746838e27671766cd43406ab1c8d89a638ad2cef Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Fri, 15 Nov 2024 16:32:49 +0800 Subject: [PATCH] fix: marketplace link --- .../components/plugins/marketplace/list/card-wrapper.tsx | 6 ++++-- web/app/components/tools/marketplace/index.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/app/components/plugins/marketplace/list/card-wrapper.tsx b/web/app/components/plugins/marketplace/list/card-wrapper.tsx index b58afa051f..fd16cd1e6b 100644 --- a/web/app/components/plugins/marketplace/list/card-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/card-wrapper.tsx @@ -8,6 +8,7 @@ import Button from '@/app/components/base/button' import { useMixedTranslation } from '@/app/components/plugins/marketplace/hooks' import InstallFromMarketplace from '@/app/components/plugins/install-plugin/install-from-marketplace' import { useBoolean } from 'ahooks' +import { useI18N } from '@/context/i18n' type CardWrapperProps = { plugin: Plugin @@ -24,6 +25,7 @@ const CardWrapper = ({ setTrue: showInstallFromMarketplace, setFalse: hideInstallFromMarketplace, }] = useBoolean(false) + const { locale: localeFromLocale } = useI18N() if (showInstallButton) { return ( @@ -54,7 +56,7 @@ const CardWrapper = ({