From 028fc00be6e402143a4a867f7058ed1ba59392de Mon Sep 17 00:00:00 2001 From: Yi Date: Thu, 14 Nov 2024 11:19:39 +0800 Subject: [PATCH] chore: update i18n & setting window --- web/app/components/header/account-setting/menu-dialog.tsx | 1 + web/app/components/plugins/plugin-page/context.tsx | 2 +- web/i18n/en-US/common.ts | 1 + web/i18n/zh-Hans/common.ts | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/components/header/account-setting/menu-dialog.tsx b/web/app/components/header/account-setting/menu-dialog.tsx index 3db8475c51..4df8ab8ab1 100644 --- a/web/app/components/header/account-setting/menu-dialog.tsx +++ b/web/app/components/header/account-setting/menu-dialog.tsx @@ -45,6 +45,7 @@ const MenuDialog = ({ leaveTo="opacity-0 scale-95" > +
{children} diff --git a/web/app/components/plugins/plugin-page/context.tsx b/web/app/components/plugins/plugin-page/context.tsx index 6554ce344a..e9e66849e9 100644 --- a/web/app/components/plugins/plugin-page/context.tsx +++ b/web/app/components/plugins/plugin-page/context.tsx @@ -68,7 +68,7 @@ export const PluginPageContextProvider = ({ { value: 'plugins', text: t('common.menus.plugins') }, ...( enable_marketplace - ? [{ value: 'discover', text: 'Explore Marketplace' }] + ? [{ value: 'discover', text: t('common.menus.exploreMarketplace') }] : [] ), ] diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts index 4b364fcfe8..b9d4f80265 100644 --- a/web/i18n/en-US/common.ts +++ b/web/i18n/en-US/common.ts @@ -126,6 +126,7 @@ const translation = { explore: 'Explore', apps: 'Studio', plugins: 'Plugins', + exploreMarketplace: 'Explore Marketplace', pluginsTips: 'Integrate third-party plugins or create ChatGPT-compatible AI-Plugins.', datasets: 'Knowledge', datasetsTips: 'COMING SOON: Import your own text data or write data in real-time via Webhook for LLM context enhancement.', diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts index ed3ccc840c..170713b95c 100644 --- a/web/i18n/zh-Hans/common.ts +++ b/web/i18n/zh-Hans/common.ts @@ -126,6 +126,7 @@ const translation = { explore: '探索', apps: '工作室', plugins: '插件', + exploreMarketplace: '探索市场', pluginsTips: '集成第三方插件或创建与 ChatGPT 兼容的 AI 插件。', datasets: '知识库', datasetsTips: '即将到来: 上传自己的长文本数据,或通过 Webhook 集成自己的数据源',