From d04325845375d08776df8662a7d9ab1693fcc380 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Sun, 7 Jun 2026 20:02:42 +0800 Subject: [PATCH] Update Sidebar labels for improved localization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the label for the home item in the Sidebar from "控制台" to "首页" to enhance clarity and localization for users. This update ensures that the interface is more intuitive for native speakers. --- src/components/layout/Sidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index d09b172..76bdad4 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -28,7 +28,7 @@ const mainItems: Array<{ label: string; icon: React.ComponentType<{ size?: number }>; }> = [ - { key: "home", label: "控制台", icon: Home }, + { key: "home", label: "首页", icon: Home }, { key: "test", label: "测试助手", icon: PlayCircle }, ]; @@ -102,7 +102,7 @@ export function Sidebar({ active={active === "home"} collapsed={collapsed} icon={Home} - label="控制台" + label="首页" onClick={() => onNavigate("home")} />