From 4093435b0ef351b25fafbd385ba8039c91f37020 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 10 Jun 2025 00:20:33 +0800 Subject: [PATCH] feat: refine i18n for dashboard widgets config form (#7511) #### What type of PR is this? /area ui /kind improvement /milestone 2.21.x #### What this PR does / why we need it: Refine i18n for dashboard widgets config form. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/7508 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../components/WidgetConfigFormModal.vue | 25 +++++++++++--- .../components/WidgetEditableItem.vue | 2 +- .../modules/dashboard/widgets/index.ts | 34 ++++++++++++------- ui/docs/extension-points/dashboard.md | 5 ++- ui/packages/shared/src/types/widget.ts | 5 ++- ui/src/locales/_missing_translations_es.yaml | 4 +++ ui/src/locales/en.yaml | 4 +++ ui/src/locales/zh-CN.yaml | 4 +++ ui/src/locales/zh-TW.yaml | 4 +++ 9 files changed, 67 insertions(+), 20 deletions(-) diff --git a/ui/console-src/modules/dashboard/components/WidgetConfigFormModal.vue b/ui/console-src/modules/dashboard/components/WidgetConfigFormModal.vue index 18f3e1e28..8e882313a 100644 --- a/ui/console-src/modules/dashboard/components/WidgetConfigFormModal.vue +++ b/ui/console-src/modules/dashboard/components/WidgetConfigFormModal.vue @@ -1,8 +1,8 @@