fix(i18n): five findings from the visual locale review

Merged
KI
3mo ago
+198-114

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:

FindingFix
毎月1st — hardcoded st/nd/rd/th ordinal injected into every localeOrdinal moved into the message as ICU selectordinal; ordinal() helper deleted
実行予定 in 2 days — raw formatDistanceStrictformatRelativeTime
5 minutes agoに更新 — raw formatDistanceToNowformatRelativeTime
KIŞISEL — <html lang> stuck at "en", so CSS uppercase used English casing for Turkish iProvider 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; the ordinal() helper is deleted.
  • Relative timestamps now use formatRelativeTime instead of raw date-fns calls.
  • The changes toolbar file count is now a <Plural>.
  • I18nProvider keeps documentElement.lang in sync with the active locale so CSS text-transform and screen readers behave correctly (Turkish i uppercases to İ, not I).

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.