feat(ui): i18n clean-up — remove zh/en mixed-language annotations (v1.21.1) - #87
Merged
Merged
Conversation
….21.1) Host feedback (rant 2026-08-18T21:40:10): pages still show mixed '仪表盘 Dashboard' style strings after switching language. - zh pack: strip 86 English annotation suffixes (nav/view/dash/stats/buttons), values are now pure Chinese (proper nouns like API/Key/Plan/tokens and shortcuts Ctrl+C/Esc kept per rant allowance) - en pack: translate leftover Chinese admin.raise.sub - index.html: remove all 55 static <span class="en"> bilingual annotations - style.css: remove the now-unused .en rule - ui/README.md: document the single-language i18n convention (v1.21.1)
argszero
added a commit
that referenced
this pull request
Sep 11, 2026
The English pack rendered four stat-card sub-labels as raw code identifiers where the Chinese pack has proper prose: ops.stats.keys.sub.on status=on -> enabled ops.stats.calls.sub usage_records -> usage records admin.emp.stats.admins.sub role=admin -> admin role admin.emp.stats.deps.sub organization -> organization management These were introduced with the language packs (#86) and kept on the English side by the later i18n clean-up (#87), which stripped the English annotation suffixes from the zh pack but left these values as they were. `organization` also collided visually with the value of the adjacent Departments card ("0 departments" + "organization"). Only English values change; the zh pack is byte-identical, so no key, placeholder or parity change is involved (775 == 775). Co-authored-by: argszero <argszero@argszerodeMac-mini.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Host feedback (rant 2026-08-18T21:40:10, project: aitokenpool): after switching language the pages still show mixed-language strings like 「仪表盘 Dashboard」.
Root causes identified in the rant:
"nav.dashboard": "仪表盘 Dashboard") — the default Chinese UI was mixed-language, and en mode also fell back to mixed zh;<span class="en">bilingual annotations in index.html — still displayed in en mode (CSS .en had no language-hiding logic).Changes
admin.raise.sub).<span class="en">bilingual annotations (semantics are fully covered by the language packs viadata-i18n)..enrule.Related Issue
Host rant 2026-08-18T21:40:10.553558 (i18n 修复 — 去中英混排). No GitHub issue number.
Rant verbatim (acceptance criteria):
Tests
cargo test全部通过(102/102)cargo fmt --check通过cargo clippy --all-targets -- -D warnings通过node --checkon i18n.js / app.js / api.jsclass="en"残留;zh 包已无「仪表盘 Dashboard」式英文注释后缀Checklist