[PR #6076] [MERGED] style(i18n): normalize Chinese-English spacing #6072

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6076
Author: @Yosyoo
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @MHSanaei

Base: main ← Head: codex/normalize-chinese-english-spacing


📝 Commits (1)

  • 93b3b93 style(i18n): normalize Chinese-English spacing

📊 Changes

2 files changed (+70 additions, -70 deletions)

View changed files

📝 internal/web/translation/zh-CN.json (+35 -35)
📝 internal/web/translation/zh-TW.json (+35 -35)

📄 Description

Summary

Add consistent spacing between Chinese text and Latin terms in the Simplified and Traditional Chinese translations to improve readability without changing keys or placeholders.

Why

Several Chinese translations joined Latin terms such as DNS, IP, Xray, VPN, 2FA, and QR directly to adjacent Chinese characters. This made the UI text harder to read and not in compliance with standards.

This change adds the appropriate spacing without changing translation keys, placeholders, or application behavior.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

  • Confirmed both translation files parse as valid JSON.
  • Confirmed all placeholders remain unchanged.
  • Reviewed the diff to ensure it contains only spacing changes.

No automated tests were added because this is a translation-only change.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/6076 **Author:** [@Yosyoo](https://github.com/Yosyoo) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `codex/normalize-chinese-english-spacing` --- ### 📝 Commits (1) - [`93b3b93`](https://github.com/MHSanaei/3x-ui/commit/93b3b9339ffc3137f80dceb44846137858121c6e) style(i18n): normalize Chinese-English spacing ### 📊 Changes **2 files changed** (+70 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `internal/web/translation/zh-CN.json` (+35 -35) 📝 `internal/web/translation/zh-TW.json` (+35 -35) </details> ### 📄 Description ## Summary Add consistent spacing between Chinese text and Latin terms in the Simplified and Traditional Chinese translations to improve readability without changing keys or placeholders. ## Why Several Chinese translations joined Latin terms such as DNS, IP, Xray, VPN, 2FA, and QR directly to adjacent Chinese characters. This made the UI text harder to read and not in compliance with standards. This change adds the appropriate spacing without changing translation keys, placeholders, or application behavior. ## Type of change - [x] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? - Confirmed both translation files parse as valid JSON. - Confirmed all placeholders remain unchanged. - Reviewed the diff to ensure it contains only spacing changes. No automated tests were added because this is a translation-only change. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). - [ ] `go build ./...` and the test suite pass locally. - [ ] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [ ] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:10 +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#6072
No description provided.