From 40eb2dadb013afb25147894406932eb8aa94c4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Mon, 16 Mar 2026 15:47:15 +0800 Subject: [PATCH] fix: configure Element Plus Chinese locale (zh-cn) Add zh-cn locale to Element Plus globally via app.use() and el-config-provider wrapper, and apply :locale prop to all el-date-picker components in dialogs to ensure correct Chinese display in date pickers, calendars, and other locale-aware UI. Made-with: Cursor --- WebUI/src/App.vue | 3 +++ WebUI/src/components/AnniversaryDialog.vue | 3 +++ WebUI/src/components/InstallmentDialog.vue | 2 ++ WebUI/src/components/TaskDialog.vue | 2 ++ WebUI/src/main.ts | 3 ++- WebUI/src/views/ProfileView.vue | 2 ++ api/webui/index.html | 4 ++-- 7 files changed, 16 insertions(+), 3 deletions(-) diff --git a/WebUI/src/App.vue b/WebUI/src/App.vue index 5439fbd..b1c1538 100644 --- a/WebUI/src/App.vue +++ b/WebUI/src/App.vue @@ -6,6 +6,7 @@ import { useCategoryStore } from '@/stores/useCategoryStore' import { useTagStore } from '@/stores/useTagStore' import { useUIStore } from '@/stores/useUIStore' import { useUserSettingsStore } from '@/stores/useUserSettingsStore' +import zhCn from 'element-plus/es/locale/lang/zh-cn' import AppHeader from '@/components/AppHeader.vue' import TaskDialog from '@/components/TaskDialog.vue' import CategoryDialog from '@/components/CategoryDialog.vue' @@ -60,6 +61,7 @@ onMounted(async () => { + @@ -97,6 +99,7 @@ onMounted(async () => { +