From e89b212dbbd4db6ea5b2eda1cba5cca5186e1be5 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 3 Jun 2026 05:15:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E6=8B=96=E6=8B=BD=E5=8C=BA=E5=9F=9F=E7=9A=84=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E6=96=87=E6=A1=88=E5=92=8C=E9=BC=A0=E6=A0=87?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 toggleSidebar 的中英文翻译 - 移除无效的拖拽鼠标样式,改为 pointer - 使用 i18n 替换硬编码的英文文本 Co-Authored-By: Claude Opus 4.8 --- frontend/src/components/ui/sidebar/SidebarRail.vue | 9 +++++---- frontend/src/plugins/i18n/en.json | 3 ++- frontend/src/plugins/i18n/zh.json | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/ui/sidebar/SidebarRail.vue b/frontend/src/components/ui/sidebar/SidebarRail.vue index 1045a55..a979efe 100644 --- a/frontend/src/components/ui/sidebar/SidebarRail.vue +++ b/frontend/src/components/ui/sidebar/SidebarRail.vue @@ -2,11 +2,13 @@ import type { HTMLAttributes } from "vue" import { cn } from "@/lib/utils" import { useSidebar } from "./utils" +import { useI18n } from "vue-i18n" const props = defineProps<{ class?: HTMLAttributes["class"] }>() +const { t } = useI18n() const { toggleSidebar } = useSidebar() @@ -14,16 +16,15 @@ const { toggleSidebar } = useSidebar()