From 3401a971a81a6abdcb01480573c64cb6c1df30cb Mon Sep 17 00:00:00 2001 From: Astrenix <121576066+Astrenix@users.noreply.github.com> Date: Sun, 19 Jul 2026 02:55:50 +0800 Subject: [PATCH] fix(frontend): localize stray hardcoded UI strings Move the last few user-visible hardcoded strings into vue-i18n: - AppHeader: "Toggle Menu" / "User Menu" aria-labels (screen readers read these in English regardless of locale) - CustomPageView: "Page not found" error body - PaymentProviderDialog: display-name example placeholder hardcoded in Chinese for all locales Adds common.toggleMenu / common.userMenu / common.pageNotFound and admin.settings.payment.customMethodDisplayNamePlaceholder to both zh and en locales, and registers the new placeholder key in the PaymentProviderDialog spec's i18n mock. Co-Authored-By: Claude Fable 5 --- frontend/src/components/layout/AppHeader.vue | 4 ++-- frontend/src/components/payment/PaymentProviderDialog.vue | 2 +- .../payment/__tests__/PaymentProviderDialog.spec.ts | 1 + frontend/src/i18n/locales/en/admin/settings.ts | 1 + frontend/src/i18n/locales/en/common.ts | 3 +++ frontend/src/i18n/locales/zh/admin/settings.ts | 1 + frontend/src/i18n/locales/zh/common.ts | 3 +++ frontend/src/views/user/CustomPageView.vue | 2 +- 8 files changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/layout/AppHeader.vue b/frontend/src/components/layout/AppHeader.vue index d0e452605..ab94ab946 100644 --- a/frontend/src/components/layout/AppHeader.vue +++ b/frontend/src/components/layout/AppHeader.vue @@ -6,7 +6,7 @@ @@ -96,7 +96,7 @@