Repository navigation
fix: localize model catalog last-synced date and add colon (#1959) - #2109
Conversation
|
Warning Review limit reached
More reviews will be available in 56 minutes and 56 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. 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 |
Desk Review — #1959 (localize model-catalog "last synced" date + add colon)Verdict: READY TO MERGE. CI: all green on this commit — 46 checks passed, 5 conditionally skipped (e.g. Docs container test), 0 failing/pending. Includes Build platform, Type check, Lint, Format, UI, Browser, and all 16 Playwright (platform) shards. Tests run locally:
Review (2 rounds, 5 breadth lenses + confirmation)Correctness — PASS. Root cause: dayjs locales load lazily (only Robustness — PASS. Elegance — PASS (minor, non-blocking). Change is minimal and scoped. Comment is accurate. The force-rerender via Boundaries / resolution — PASS. i18n complete: Tests — acceptable gap, non-blocking. i18n parity test guards the JSON change and passes. There is no unit test for Note: the pre-existing empty |
Summary
Fixes #1959 — the model-catalog "last synced" line rendered its date in English regardless of the active locale and was missing a colon after the label.
Changes
useFormatDate: the active locale's dayjs data is registered lazily as a global side-effect that does not re-render React. A date could therefore paint with the eagerly-loadedenlocale before the active locale's data arrived and stay stuck in English (e.g. a German "Zuletzt synchronisiert" line showing an English-formatted date). The hook now loads the locale and bumps a counter once it's ready, so dependent formatting re-runs with the correct locale. Already-loaded locales resolve synchronously, so this is a no-op beyond a single mount-time re-render. This fixes the catalog card and every other consumer of the formatter.en,de,fr): added the colon tosettings.providers.modelCatalog.lastSynced(e.g.Zuletzt synchronisiert: {when} · {count} Modelle.).Acceptance criteria
Verification
tsc --noEmit(platform) — cleanoxlint --type-awareon changed files — 0 warnings/errorsvitesti18n parity suite (lib/i18n/messages.test.ts) — 23 passed