From e7d117f11fdd10344eb7344a8fa0ccc0fe0ef91d Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 8 May 2026 15:07:41 +0200 Subject: [PATCH] =?UTF-8?q?i18n(frontend):=20translate=20page=20chrome=20?= =?UTF-8?q?=E2=80=94=20sidebar,=20save=20bars,=20tabs,=20summary=20cards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces hardcoded English with t() calls in the components every user sees on every page load. The translations themselves come from the existing TOML files via the sync script — no new strings, no new locale keys. Per component: - AppSidebar.vue: 5 menu titles (dashboard / inbounds / settings / xray / logout). Computed so the sidebar re-renders when the cookie-driven locale flips on reload. - IndexPage.vue: Quick actions card title + Logs / Backup / Up-to- date / Update buttons. - StatusCard.vue: CPU / Memory / Swap / Storage labels + logical-processors / frequency tooltips. - XrayStatusCard.vue: card title + error popover header + Stop / Restart / Switch xray action labels (kept the v-prefix version string as-is — it's content, not a label). - SettingsPage.vue: 5 tab titles + Save / Restart-panel buttons + unsaved-changes warning. - XrayPage.vue: 6 tab titles + Save / Restart-xray buttons + unsaved-changes warning. - InboundsPage.vue: 5 summary-stat card titles. - InboundList.vue: 10 column titles (computed for live locale), Add inbound / General actions buttons + every dropdown menu item, search placeholder, filter radio labels, popover titles (disabled / depleted / depleting / online), traffic + info popover row labels. Total: ~75 strings localised across 8 files. The remaining English labels live in the per-tab settings forms, the form modals (Inbound / Client / Outbound / Rule / Balancer / WARP / Nord), and the per-row table cell helpers — all incremental work that doesn't touch infrastructure. Co-Authored-By: Claude Opus 4.7 --- frontend/src/components/AppSidebar.vue | 21 ++-- frontend/src/pages/inbounds/InboundList.vue | 122 ++++++++++--------- frontend/src/pages/inbounds/InboundsPage.vue | 13 +- frontend/src/pages/index/IndexPage.vue | 17 ++- frontend/src/pages/index/StatusCard.vue | 17 +-- frontend/src/pages/index/XrayStatusCard.vue | 15 ++- frontend/src/pages/settings/SettingsPage.vue | 19 +-- frontend/src/pages/xray/XrayPage.vue | 19 +-- 8 files changed, 136 insertions(+), 107 deletions(-) diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index 04dcb482..fb866d35 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -1,5 +1,6 @@