fix(i18n): five findings from the visual locale review
A CDP review agent walked every translated surface (en/ja/ko/ru/tr, 35 screenshots) after the locale train landed. Today's work all passed; these five pre-existing leaks fell out:
| Finding | Fix |
|---|---|
毎月1st — hardcoded st/nd/rd/th ordinal injected into every locale | Ordinal moved into the message as ICU selectordinal; ordinal() helper deleted |
実行予定 in 2 days — raw formatDistanceStrict | formatRelativeTime |
5 minutes agoに更新 — raw formatDistanceToNow | formatRelativeTime |
KIŞISEL — <html lang> stuck at "en", so CSS uppercase used English casing for Turkish i | Provider syncs documentElement.lang on activation |
34 files hardcoded English plural in the changes toolbar | <Plural> |
This PR doubles as the live acceptance test for #6984: the three new ids are deliberately untranslated in all sixteen locales (48 gaps). The Translate Catalogs workflow should detect them, fill, verify strict + stale, and push a commit back — first CI round red on the catalog audit is expected; the workflow's push makes the second round green.
Local gates: 952 tests, desktop typecheck, biome all green; the only strict-compile misses are exactly the 3×16 intended.
https://claude.ai/code/session_012U97YWVsDvZwQkBaSGEmor
Summary by cubic
Fixes five pre-existing i18n leaks so translated surfaces no longer mix in English text. This PR also served as the live acceptance test for #6984: the three new message ids were left untranslated, and the Translate Catalogs workflow has already filled the 48 gaps and pushed the translations back.
Bug Fixes
- Monthly schedule ordinals (1st/2nd/3rd) moved into the message as ICU
selectordinal; theordinal()helper is deleted. - Relative timestamps now use
formatRelativeTimeinstead of rawdate-fnscalls. - The changes toolbar file count is now a
<Plural>. I18nProviderkeepsdocumentElement.langin sync with the active locale so CSStext-transformand screen readers behave correctly (Turkishiuppercases toİ, notI).
Summary by CodeRabbit
-
Localization
- Improved monthly schedule descriptions with locale-aware ordinal day formatting.
- Added pluralized file-count labels in the workspace changes toolbar across supported languages.
- The document language now updates automatically when the app locale changes.
-
User Experience
- Standardized relative-time labels for automation runs and pull request updates.
- Improved grammar and pluralization for file counts.