Repository navigation
fix(platform): render notifications bell i18n keys and ICU placeholders (#2055) - #2237
Conversation
…rs (#2055) Add the six missing agent budget / circuit-breaker keys to the notifications namespace (en/de/fr) and register them in keys-dynamic.txt, and add a no-agent fallback body for task_review_requested so the bell never shows a raw {agentSlug} when no agent slug is present. Money is formatted to USD in the mutation so locale strings stay currency-symbol free. Closes #2055
…2055) The notifications namespace is also mirrored server-side in notification_messages.ts for Slack delivery; add the six new keys there too (deep-equal parity guard).
Desk Review — PR #2237 (fixes #2055)Verdict: READY TO MERGE. Reviewed the full implementation on branch CI
TestsInstalled workspace deps (
What I verified
No blocking issues found. The change is minimal, focused, fully resolves both defects in #2055, and is well-tested. (Automated desk review — review only; no code modified.) |
Summary
Fixes two i18n defects on the Notifications bell (issue #2055):
titleKey/bodyKeystrings written byconvex/agents/guardrails/internal_mutations.ts(agentBudgetWarn*,agentBudgetExceeded*,agentCircuitTripped*) had no entries in thenotificationsnamespace, so the bell printed the raw key. Added all six toen/de/frand registered them inlib/i18n/keys-dynamic.txt. Spent/monthly amounts are formatted to USD in the mutation (formatUsd) so the locale strings stay currency-symbol free.task_review_requestedrendered a raw{agentSlug}when no agent slug was present. Added a no-agent fallback bodyinbox.taskReviewRequestedBodyNoAgent(no{agentSlug}placeholder) and madenotifyTaskReviewRequestedpick it whenagentSlugis absent.Tests
lib/i18n/notification-keys.test.ts: asserts all six notification keys exist per locale and fully substitute, and that the task-review body fully substitutes both with and without an agent slug (the no-agent fallback references no{agentSlug}).bunx vitest --run --project server(i18n parity/usage + guardrails + new test),tsc --noEmit, andoxlint --type-awareall green locally.Closes #2055