fix(i18n): make built sentences whole messages instead of fragments
Why
Six components assembled UI sentences from fragment strings — a bare on, at, in, using, from — which no case-marking, verb-final, or gendered language can translate in isolation. All sixteen translated locales shipped workarounds; six flagged the same strings independently during the locale train (colon constructions in ko/ru/pl/cs, telegraphic labels in tr, forced nominatives everywhere).
What
| Before | After |
|---|---|
[Weekly] on [Fri] at [9:00] joined by the component | One rich message per shape: {kindChip} <0>on</0> {daySelect} <1>at</1> {timeInput} — locales reorder the controls and reword the joins (Korean: {time}에, CJK drop the connective, Turkish inserts her) |
in [project] on [device] using [workspace] | One message with the pickers as placeholders; CJK/Slavic/Turkic locales use label style (프로젝트: … 기기: …), Romance/Germanic keep prepositions |
"{day}s" (pluralize a weekday by appending s) | "Every {day}" under a new id |
"Specify at least one {noun}" (article must agree with a placeholder) | ICU select over the noun key; each locale inflects every branch (Укажите хотя бы одну реакцию vs один канал) |
allChecksPassedOne/Many hand-split pair | One ICU plural; ends "All 1 check passed" |
from [branch selector] | Rich message; Korean renders {selector} 기준 |
Net −12 catalog messages. All sixteen locales translated for the nine new ids in this PR — including four-branch plurals for ru/pl/cs and per-noun gender/case in the selects — so compile --strict is green with no translation debt.
Verification
- i18n check exit 0 (extract → strict compile → stale check → clean tree); i18n tests 108, shared tests 836, desktop typecheck, biome all green
- Message shapes confirmed in the extracted catalog (placeholders/tags/ICU exactly as designed)
Known trade-off: the Trans-wrapped controls render identically in en (verified by shape, not by eye against every locale); locale renders remain machine-authored pending the native review pass already tracked for the catalog as a whole.
https://claude.ai/code/session_012U97YWVsDvZwQkBaSGEmor
Summary by cubic
Rebuilds UI sentences that were assembled from untranslatable fragments (bare on, at, in, from) into single catalog messages, so locales can reorder controls and reword connectives.
- Schedule, trigger scope, and branch-selector sentences now ship as one message each with controls as placeholders.
- Weekday pluralization (
"{day}s") becomes"Every {day}". - "Specify at least one {noun}" uses an ICU
selectover the noun key so locales inflect each branch. - The hand-split check-passed pair becomes one ICU plural; single-day weekly schedules now read "Every Monday".
- All sixteen locales are translated for the nine new ids; net −12 catalog messages.
Summary by CodeRabbit
-
Improved Localization
- Updated automation schedules and trigger descriptions to use complete, natural-language sentences.
- Improved scope guidance with context-aware wording across supported languages.
- Added accurate pluralized messaging for passed pull-request checks.
- Improved translations for base-branch labels and schedule controls.
- Updated localized account and session restart messaging.
-
Bug Fixes
- Weekly schedules now display “Every [day]” instead of incorrectly appending an “s.”
- Schedule wording now adapts more naturally across locales.