[Chore-1114] Name affected entities in settings toasts

Story 1114Epic None14 files · +80/−20

PR #304 · pramaan-io/pramaan-app · merged 2026-06-11

Why this matters

Six catalog types. One generic toast. Which one did you just save?

Story 988 — Name the entity in the toast

Hardcoded toasts die at the first locale switch.

The fix — Name the entity in the toast — in every language, without hardcoding.

How it flows

sequenceDiagram
  autonumber
  participant comp as Sheet Component
  participant i18n as t.rich / i18n
  participant ui as Toast UI
  comp->>i18n: calls toast with t.rich key
  i18n->>i18n: resolves rich template + bold slot
  comp->>i18n: passes entity name as bold chunk
  i18n->>ui: renders final localized string

Files changed (14)

File±
messages/en.json ★+13 −4
messages/hi.json ★+13 −4
src/app/[locale]/(workspace)/clients/actions.ts+2 −2
src/app/[locale]/(workspace)/clients/clients-client.tsx+6
src/components/clients/client-form.stories.tsx+1 −1
src/components/clients/client-form.tsx ★+9 −3
src/components/clients/client-sheet.stories.tsx+1 −1
src/components/clients/pages/client-detail-page.stories.tsx+1 −1
src/components/clients/results.ts+1 −1
src/components/settings/filing-types/use-filing-type-sheet.tsx+7
src/components/settings/forums/forums-list-page.tsx+6
src/components/settings/participant-labels/use-participant-label-sheet.tsx+8
src/components/settings/proceeding-types/use-proceeding-type-sheet.tsx+8
tests/unit/client-form.test.tsx+4 −3