[PR #6460] [CLOSED] feat(frontend): complete i18n coverage for remaining hardcoded strings #6283

Closed
opened 2026-11-02 04:07:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6460
Author: @mrchatam
Created: 9/11/2026
Status: ❌ Closed

Base: main ← Head: feat/frontend-i18n-hardcoded-strings


📝 Commits (2)

  • 8d62869 feat(frontend): wrap remaining hardcoded UI strings in i18n
  • f220a28 fix(i18n): rename reserved pages.inbounds.id and untranslate downloads

📊 Changes

29 files changed (+863 additions, -168 deletions)

View changed files

📝 frontend/src/components/command-palette/CommandPalette.tsx (+1 -1)
📝 frontend/src/layouts/AppSidebar.tsx (+1 -1)
📝 frontend/src/pages/inbounds/form/FallbacksCard.tsx (+3 -3)
📝 frontend/src/pages/inbounds/form/InboundFormModal.tsx (+10 -3)
📝 frontend/src/pages/inbounds/form/security/reality.tsx (+8 -3)
📝 frontend/src/pages/inbounds/form/security/tls.tsx (+13 -4)
📝 frontend/src/pages/inbounds/list/useInboundColumns.tsx (+1 -1)
📝 frontend/src/pages/index/ConnectionsCard.tsx (+4 -4)
📝 frontend/src/pages/index/IndexPage.tsx (+2 -2)
📝 frontend/src/pages/index/LogModal.tsx (+2 -2)
📝 frontend/src/pages/index/SystemStrip.tsx (+2 -2)
📝 frontend/src/pages/index/XrayLogModal.tsx (+13 -13)
📝 frontend/src/pages/sub/SubPage.tsx (+61 -29)
📝 frontend/src/pages/xray/outbounds/TestResultPopover.tsx (+3 -3)
📝 frontend/src/pages/xray/outbounds/security/reality.tsx (+8 -2)
📝 frontend/src/pages/xray/outbounds/security/tls.tsx (+16 -4)
📝 internal/web/translation/ar-EG.json (+55 -7)
📝 internal/web/translation/en-US.json (+55 -7)
📝 internal/web/translation/es-ES.json (+55 -7)
📝 internal/web/translation/fa-IR.json (+55 -7)

...and 9 more files

📄 Description

Summary

  • Wraps the remaining user-visible hardcoded English strings from #5820 in t('…') across the dashboard, log modals, sidebar, subscription page, inbound list/forms, and outbound TLS/REALITY forms.
  • Adds the corresponding keys to all 13 locale files under internal/web/translation/ (English values as placeholders where not yet translated).
  • No UI redesign — string wiring only.

Covered (mapped from #5820)

Area Changes
P0 Dashboard SystemStrip Xray/OS labels; ConnectionsCard TCP/UDP; config modal Download / config.json / Copy (existing copied already used)
P1 Log modals SysLog, No Record…, access-log filter labels + table headers (Date/From/To/…)
P1 Sidebar DNS label (menu.dnsLabel); Sub Formats was already translated
P1 Sub page Client app names, SUB/JSON/CLASH tags, Clash/Mihomo, QR aria labels
P1 Settings / list Inbound table ID; calendar Gregorian/Jalalian already translated
P2 Forms SNI / uTLS / ALPN / ECH / None labels; FallbacksCard prefixes; protocol select labels; clients export filename; outbound test failed

Already done upstream / N/A

  • Log level labels (Debug/Info/…) and access event tokens already used pages.index.logLevel* / accessDirect|Blocked|Proxy.
  • Dedicated IPv4/IPv6 titles are no longer rendered on the overview strip (IPs show without those titles after the overview redesign).

Remaining / out of scope notes

  • Brand/protocol identifiers keep English values by design (app names, vmess/vless/…).
  • A few adjacent hardcodes not listed in #5820 (e.g. FinalMask DNS option, InboundInfoModal JSON tag) were left untouched to keep the PR focused.

Test plan

  • Switch UI language (e.g. zh-CN) and confirm overview strip shows translated OS/TCP/UDP / config modal actions
  • Open panel logs + access logs: SysLog checkbox, empty state, and table headers follow locale
  • Sidebar Xray → DNS label translates; subscription page tags/apps use keys
  • Inbound form: protocol dropdown, TLS/REALITY SNI/uTLS/ALPN labels; fallbacks SNI/ALPN prefixes
  • Export clients download name uses translated filename key
  • Confirm every locale JSON still loads (same key set across all 13 files)

Fixes #5820


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6460 **Author:** [@mrchatam](https://github.com/mrchatam) **Created:** 9/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/frontend-i18n-hardcoded-strings` --- ### 📝 Commits (2) - [`8d62869`](https://github.com/MHSanaei/3x-ui/commit/8d62869240b9543ec9c0c58ce94866f5f029c050) feat(frontend): wrap remaining hardcoded UI strings in i18n - [`f220a28`](https://github.com/MHSanaei/3x-ui/commit/f220a28e76b44ae3ebf8c0ee4d94b20a640648af) fix(i18n): rename reserved pages.inbounds.id and untranslate downloads ### 📊 Changes **29 files changed** (+863 additions, -168 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/command-palette/CommandPalette.tsx` (+1 -1) 📝 `frontend/src/layouts/AppSidebar.tsx` (+1 -1) 📝 `frontend/src/pages/inbounds/form/FallbacksCard.tsx` (+3 -3) 📝 `frontend/src/pages/inbounds/form/InboundFormModal.tsx` (+10 -3) 📝 `frontend/src/pages/inbounds/form/security/reality.tsx` (+8 -3) 📝 `frontend/src/pages/inbounds/form/security/tls.tsx` (+13 -4) 📝 `frontend/src/pages/inbounds/list/useInboundColumns.tsx` (+1 -1) 📝 `frontend/src/pages/index/ConnectionsCard.tsx` (+4 -4) 📝 `frontend/src/pages/index/IndexPage.tsx` (+2 -2) 📝 `frontend/src/pages/index/LogModal.tsx` (+2 -2) 📝 `frontend/src/pages/index/SystemStrip.tsx` (+2 -2) 📝 `frontend/src/pages/index/XrayLogModal.tsx` (+13 -13) 📝 `frontend/src/pages/sub/SubPage.tsx` (+61 -29) 📝 `frontend/src/pages/xray/outbounds/TestResultPopover.tsx` (+3 -3) 📝 `frontend/src/pages/xray/outbounds/security/reality.tsx` (+8 -2) 📝 `frontend/src/pages/xray/outbounds/security/tls.tsx` (+16 -4) 📝 `internal/web/translation/ar-EG.json` (+55 -7) 📝 `internal/web/translation/en-US.json` (+55 -7) 📝 `internal/web/translation/es-ES.json` (+55 -7) 📝 `internal/web/translation/fa-IR.json` (+55 -7) _...and 9 more files_ </details> ### 📄 Description ## Summary - Wraps the remaining user-visible hardcoded English strings from #5820 in `t('…')` across the dashboard, log modals, sidebar, subscription page, inbound list/forms, and outbound TLS/REALITY forms. - Adds the corresponding keys to **all 13** locale files under `internal/web/translation/` (English values as placeholders where not yet translated). - No UI redesign — string wiring only. ### Covered (mapped from #5820) | Area | Changes | |------|---------| | **P0 Dashboard** | `SystemStrip` Xray/OS labels; `ConnectionsCard` TCP/UDP; config modal Download / `config.json` / Copy (existing `copied` already used) | | **P1 Log modals** | `SysLog`, `No Record…`, access-log filter labels + table headers (`Date`/`From`/`To`/…) | | **P1 Sidebar** | DNS label (`menu.dnsLabel`); Sub Formats was already translated | | **P1 Sub page** | Client app names, `SUB`/`JSON`/`CLASH` tags, Clash/Mihomo, QR aria labels | | **P1 Settings / list** | Inbound table `ID`; calendar Gregorian/Jalalian already translated | | **P2 Forms** | SNI / uTLS / ALPN / ECH / None labels; FallbacksCard prefixes; protocol select labels; clients export filename; outbound test `failed` | ### Already done upstream / N/A - Log level labels (`Debug`/`Info`/…) and access event tokens already used `pages.index.logLevel*` / `accessDirect|Blocked|Proxy`. - Dedicated IPv4/IPv6 *titles* are no longer rendered on the overview strip (IPs show without those titles after the overview redesign). ### Remaining / out of scope notes - Brand/protocol identifiers keep English values by design (app names, `vmess`/`vless`/…). - A few adjacent hardcodes not listed in #5820 (e.g. FinalMask DNS option, `InboundInfoModal` JSON tag) were left untouched to keep the PR focused. ## Test plan - [ ] Switch UI language (e.g. zh-CN) and confirm overview strip shows translated OS/TCP/UDP / config modal actions - [ ] Open panel logs + access logs: SysLog checkbox, empty state, and table headers follow locale - [ ] Sidebar Xray → DNS label translates; subscription page tags/apps use keys - [ ] Inbound form: protocol dropdown, TLS/REALITY SNI/uTLS/ALPN labels; fallbacks SNI/ALPN prefixes - [ ] Export clients download name uses translated filename key - [ ] Confirm every locale JSON still loads (same key set across all 13 files) Fixes #5820 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:40 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6283
No description provided.