diff --git a/app/components/plugin.tsx b/app/components/plugin.tsx index 32fb0dbd6..fbaed29cc 100644 --- a/app/components/plugin.tsx +++ b/app/components/plugin.tsx @@ -297,7 +297,9 @@ export function PluginPage() { const allPlugins = pluginStore .getAll() - .filter((m) => !getLang() || m.lang === getLang()); + .filter( + (m) => !getLang() || m.lang === (getLang() == "cn" ? getLang() : "en"), + ); const [searchPlugins, setSearchPlugins] = useState([]); const [searchText, setSearchText] = useState(""); diff --git a/app/store/chat.ts b/app/store/chat.ts index 25658fb51..ccef540e0 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -317,7 +317,12 @@ export const useChatStore = create()( const pluginStore = usePluginStore.getState(); const allPlugins = pluginStore .getAll() - .filter((m) => (!getLang() || m.lang === getLang()) && m.enable); + .filter( + (m) => + (!getLang() || + m.lang === (getLang() == "cn" ? getLang() : "en")) && + m.enable, + ); // save user's and bot's message get().updateCurrentSession((session) => {