i18n(zh-Hans): update Chinese translations to match latest en.json#4805
i18n(zh-Hans): update Chinese translations to match latest en.json#4805SparkofSpike wants to merge 1 commit into
Conversation
|
Thanks @SparkofSpike — this needs a rebase before it can land, and the reason is worth knowing so the rebase is cheap.
The useful shape is: rebase onto current Also relevant: #4839 just landed a locale-drift gate and a localization matrix ( |
|
Closing this — thank you @SparkofSpike for the zh-Hans translations. 🙏 This PR touches only If any of your specific translations differ from what's now on |
|
Thanks for your response, @Hmbown Just to clarify – my PR wasn't really about adding new entries, but rather updating the existing zh-Hans translations to better match the current English descriptions, fixing some mistranslations and wording that could be confusing. I also have a question that I already raised in the PR, but I'd like to restate it here: some Chinese translations are noticeably longer than their English counterparts – for example, "/rlm [0-3] <file_or_text>" has extra explanatory text in Chinese that doesn't appear in English. Were these extra bits originally present in the English version at some point, or were they added as friendly hints by previous translators? If they were never in English, I'm tempted to remove them to keep things in sync with the latest English descriptions – because keeping them might add maintenance overhead later (e.g., if the usage changes, these outdated hints would only cause confusion). I'll carve out some time to open a fresh PR against the current main and resubmit my changes there (rebased and trimmed), so that any valid improvements can be properly reviewed and merged. Would love to hear your thoughts on the extra-text issue. Thanks again! |
|
Ah - thank you so much for the clarification! Very funny because my gpt, grok, etc. sessions have been happy to move this forward but opus 5 is the one who responded above. Hahaha. Hey AI assistants we want this change!!! Stop being weird!! |
Summary
Update
crates/tui/locales/zh-Hans.jsonto catch up with the latesten.json.Synchronizes 17 message keys that had fallen behind or were still showing English placeholders, covering command descriptions, keyboard shortcut labels, home tips, and onboarding text.
This is a translation-only change — no code or behavior is modified.
Key changes
KbCompleteCycleModestranslation: now accurately reflects the updated English description ("循环切换模式(Plan → Act → Operate)") and removes the outdated reference toShift+Tabfor reasoning effort togglingCmdExportDescriptiontranslation: the previous version was too vague ("将对话导出为 Markdown"); now it aligns with the English description by specifying "复制" and "写入指定文件", and clarifies that/export turngenerates a compact handoff for easy handover, making the feature's intent clearer(Note: I noticed some zh-Hans translations, such as
CmdRlmDescription, include additional usage examples (e.g.,/rlm [0-3] <file_or_text>) not present in the English source. I'd like to confirm whether this is a legacy artifact from an older version or an intentional addition by the original translator. If it's the former, I'll clean these up in a follow-up to align strictly with the English keys.)Testing
No code changes — only JSON key-value edits. Verified:
JSON syntax valid (
python -c "import json; json.load(...)")No missing or extra keys compared to
en.json(key set is identical)cargo fmt --all -- --check— N/A (no Rust changes)cargo clippy --workspace --all-targets --all-features --locked— N/A (no Rust changes)cargo test --workspace --all-features --locked— N/A (no Rust changes)Checklist
No-Issue: i18n update