Repository navigation
fix(i18n): restore count separators in terminal theme picker for CJK locales - #9935
Conversation
📝 WalkthroughWalkthroughUpdated Korean, Japanese, and Chinese settings-form translations and override mappings to preserve slash separators between count fragments and leading spaces before search-match fragments. Added Vitest coverage verifying 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…locales
The theme picker count row concatenates "Showing {count}" directly with
the " of {{value0}}" fragment. The ko/ja/zh translations dropped the
fragment's leading separator, so the shown and total counts fused
(e.g. Korean rendered "표시 중 3030 중" instead of "표시 중 30/30").
Restore a slash separator for the total-count fragment and the leading
space for the search-match fragment in ko/ja/zh, in both the runtime
catalogs and the key-override sources so catalog regeneration keeps the
repaired values. Add a regression test covering both fragments.
🤖 Generated with Claude Code
adaff5f to
b10d0c5
Compare
|
Thanks so much for this, @jeongph — restore count separators in terminal theme picker for CJK locales. Verified (fail-on-main/pass-on-branch), rebased on latest |
|
Before/after for the CJK theme-picker count separator: Terminal theme picker — CJK count separator fix (#9935)The theme-picker count row renders BEFORE (broken) — total-count row, 30 of 30 themes
AFTER (fixed)
BEFORE / AFTER — search-match fragment (while filtering)
Verification
Data-only change (translation catalog strings + cross-locale override table); |
…locales (stablyai#9935) The theme picker count row concatenates "Showing {count}" directly with the " of {{value0}}" fragment. The ko/ja/zh translations dropped the fragment's leading separator, so the shown and total counts fused (e.g. Korean rendered "표시 중 3030 중" instead of "표시 중 30/30"). Restore a slash separator for the total-count fragment and the leading space for the search-match fragment in ko/ja/zh, in both the runtime catalogs and the key-override sources so catalog regeneration keeps the repaired values. Add a regression test covering both fragments. 🤖 Generated with Claude Code
Summary
Fixes the terminal theme picker count row fusing the shown and total counts (e.g.
표시 중 3030 중) in Korean, Japanese, and Chinese locales.ELI5
In the terminal theme settings, Korean/Japanese/Chinese users saw two numbers mashed together like "3030" instead of "30/30". This restores the missing separator so the count reads correctly.
Root cause & fix
The count row concatenates translated fragments directly after the visible count, and the English fragment carries a leading separator/space that the machine-translated ko/ja/zh values dropped — fusing the shown and total numbers (and, while searching, the count and quoted query). The fix pins locale overrides so
repairTranslatedValuereturns the separator-preserving values (/{{value0}}for the total, and a space-prefixed search-match fragment) and regenerates the ko/ja/zh catalogs to match. The change is data-only (translation strings + override table); no logic path is altered.Evidence
Validated & rebased onto latest main during a bug-bash triage on 2026-07-23. Rebase was clean onto
origin/main.config/scripts/locale-count-fragment-separator.test.mjs— 2 tests pass on branch.oxlinton the changed.mjsand test file exits 0.Trade-offs
None — pure fix.
Regression risk
Zero-regression: the change touches only translation catalog strings and the override table for ko/ja/zh; no code path or non-affected locale (e.g.
es) is modified. Values flow unchanged through the existing repair pipeline, and the passing test guards against catalog regeneration re-dropping the separators.Credit to @jeongph (JeongUk Park) for the original fix. Validated, rebased, and (where applicable) hardened via automated bug-bash review; original fix design preserved.