From 4373e6da881eb47c45bd74f9203f9ec8e59f4344 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Sat, 24 Feb 2024 11:50:06 +0800 Subject: [PATCH] feat(Help): switch to the Chinese page when using Chinese (#3567) --- packages/core/client/src/user/Help.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/user/Help.tsx b/packages/core/client/src/user/Help.tsx index 896298944..0a43a345e 100644 --- a/packages/core/client/src/user/Help.tsx +++ b/packages/core/client/src/user/Help.tsx @@ -16,6 +16,9 @@ const SettingsMenu: React.FC<{ const data = useCurrentAppInfo(); const { token } = useToken(); + // 是否是简体中文 + const isSimplifiedChinese = data?.data?.lang === 'zh-CN'; + const items = [ { key: 'nocobase', @@ -34,7 +37,7 @@ const SettingsMenu: React.FC<{ { key: 'homePage', label: ( - + {t('Home page')} ), @@ -42,7 +45,14 @@ const SettingsMenu: React.FC<{ { key: 'userManual', label: ( - + {t('User manual')} ),