From 83cad07fb3a3be6bdc280ee0cb63d8d2a86f9c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Wed, 5 Mar 2025 14:59:04 +0800 Subject: [PATCH] fix endpoint help link 404 (#14981) --- .../plugins/plugin-detail-panel/endpoint-list.tsx | 2 +- web/app/components/plugins/plugin-page/index.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx index 2116a5474a..a6d5f29a32 100644 --- a/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx +++ b/web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx @@ -79,7 +79,7 @@ const EndpointList = ({ detail }: Props) => {
{t('plugin.detailPanel.endpointsTip')}
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx index 7eea8fea0f..31f17030bd 100644 --- a/web/app/components/plugins/plugin-page/index.tsx +++ b/web/app/components/plugins/plugin-page/index.tsx @@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' +import { useContext } from 'use-context-selector' import Link from 'next/link' import { RiBookOpenLine, @@ -36,6 +37,8 @@ import { sleep } from '@/utils' import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins' import { marketplaceApiPrefix } from '@/config' import { SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config' +import { LanguagesSupported } from '@/i18n/language' +import I18n from '@/context/i18n' const PACKAGE_IDS_KEY = 'package-ids' const BUNDLE_INFO_KEY = 'bundle-info' @@ -49,6 +52,7 @@ const PluginPage = ({ marketplace, }: PluginPageProps) => { const { t } = useTranslation() + const { locale } = useContext(I18n) const searchParams = useSearchParams() const { replace } = useRouter() @@ -164,7 +168,7 @@ const PluginPage = ({ activeTab === 'discover' && ( <>