From c1e91bc8aad256b28070a6305bc251421b9cbf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E7=94=B1=E7=9A=84=E4=B8=96=E7=95=8C=E4=BA=BA?= <3196812536@qq.com> Date: Wed, 4 Jun 2025 17:57:25 +0800 Subject: [PATCH] fix: optimize multilingual display of documents (#6793) Update Sidebar.tsx --- src/renderer/src/components/app/Sidebar.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/app/Sidebar.tsx b/src/renderer/src/components/app/Sidebar.tsx index c85fdcd2c2..c221e04dd1 100644 --- a/src/renderer/src/components/app/Sidebar.tsx +++ b/src/renderer/src/components/app/Sidebar.tsx @@ -35,6 +35,7 @@ import styled from 'styled-components' import DragableList from '../DragableList' import MinAppIcon from '../Icons/MinAppIcon' import UserPopup from '../Popups/UserPopup' +import i18n from '@renderer/i18n' const Sidebar: FC = () => { const { hideMinappPopup, openMinapp } = useMinappPopup() @@ -62,10 +63,13 @@ const Sidebar: FC = () => { const docsId = 'cherrystudio-docs' const onOpenDocs = () => { + const isChinese = i18n.language.startsWith('zh') openMinapp({ id: docsId, name: t('docs.title'), - url: 'https://docs.cherry-ai.com/', + url: isChinese + ? 'https://docs.cherry-ai.com/' + : 'https://docs.cherry-ai.com/cherry-studio-wen-dang/en-us', logo: AppLogo }) }