Skip to content

Complete Simplified Chinese localization for the native app and web console - #2475

Closed
LXD-8 wants to merge 2 commits into
jundot:mainfrom
LXD-8:zh-hans-full-localization
Closed

LXD-8 wants to merge 2 commits into
jundot:mainfrom
LXD-8:zh-hans-full-localization

Conversation

@LXD-8

@LXD-8 LXD-8 commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR completes Simplified Chinese (zh-Hans) localization for the native macOS app, and on top of that refines the web admin console that was already made complete by @NirvanaCh7 in #2415.

1. Native macOS app UI — full coverage (the main contribution)

  • File: apps/omlx-mac/Resources/Localizable.xcstrings
  • Coverage went from ~3% (27 strings, as of v0.5.4) to 99% (1144 / 1159 strings).
  • The remaining ~1% are intentionally left in English: product/tool names (Claude Code, Codex, oMLX, LM Studio…), mode names (adaptive, ddtree, dflash), and placeholder samples (sk-omlx-sub-…, profile-name).

2. Web admin console — refinement on top of #2415

  • File: omlx/admin/i18n/zh.json (970 keys, key set matches en.json)
  • Extends the already-complete dashboard Chinese with a stricter, consistent terminology standard (see below) and a handful of newly-added context-benchmark strings.

Terminology standard applied (both surfaces)

  • token disambiguated: LLM tokens → 词元; auth tokens → 令牌 (e.g. HuggingFace 令牌).
  • AI inference terms use 中文(English): 闪电多级词元预测(Lightning MTP), 视觉语言模型多级词元预测(VLM MTP), 推测解码(DFlash), 稀疏预填充(SpecPrefill), 首词元延迟(TTFT), 每词元延迟(TPOT), 预填充 TPS(PP TPS).
  • Sampling params use a symmetric form: Top-P 采样 / Top-K 采样.
  • Non-AI base terms kept in English: CPU / GPU / RAM / SSD / HTTP / HTTPS / TLS / API / JSON.
  • Abbreviations annotated: 可缩放矢量图形(SVG), 内存不足(OOM).
  • Language names in the picker keep their native script (English, 日本語, Español, Русский, …).

Checks performed before submitting

  • Key set unchanged — Localizable.xcstrings key set is identical to main (1159 keys); no keys added or removed, so no upstream strings are dropped. zh.json key set matches en.json exactly (970 keys).
  • Placeholder integrity — every %@ / %lld / positional (%1$@) placeholder present in the English source is preserved in the Chinese translation (0 mismatches in either file).
  • No code / template changes — the diff touches only the two localization resource files. No .swift, .py, .html, or .js files modified.
  • No empty values for translated strings — every English string that should be translated has a Chinese value; the few untranslated entries are deliberately English product/placeholder names.

Files changed

  • apps/omlx-mac/Resources/Localizable.xcstrings — native macOS UI (value-only edits, key structure untouched)
  • omlx/admin/i18n/zh.json — web admin console (value-only edits, key set matches en.json)

No code, templates, or identifiers were modified — only display strings.

🤖 Generated with Claude Code

- zh.json: all 963 keys translated, key set identical to en.json
- Localizable.xcstrings: zh-Hans expanded to 1131 keys covering native macOS UI
- terminology unified (中文(English)), casing consistent
@LXD-8 LXD-8 changed the title Complete Simplified Chinese (zh-Hans) localization Complete Simplified Chinese (zh-Hans) localization for native macOS UI and web admin console Aug 2, 2026
@LXD-8
LXD-8 force-pushed the zh-hans-full-localization branch from f85a313 to e162582 Compare August 2, 2026 17:27
@LXD-8
LXD-8 force-pushed the zh-hans-full-localization branch from e162582 to edb69eb Compare August 2, 2026 17:29
@LXD-8 LXD-8 changed the title Complete Simplified Chinese (zh-Hans) localization for native macOS UI and web admin console Add complete Simplified Chinese (zh-Hans) localization for the native macOS app, and refine the web console Aug 2, 2026
@LXD-8 LXD-8 changed the title Add complete Simplified Chinese (zh-Hans) localization for the native macOS app, and refine the web console Complete Simplified Chinese localization for the native app and web console Aug 2, 2026
@LXD-8

LXD-8 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #2481 (clean single-commit PR from current main).

@LXD-8 LXD-8 closed this Aug 2, 2026
@LXD-8
LXD-8 deleted the zh-hans-full-localization branch August 2, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant