Docs: admin languages and texts, wording rule for agents, new screen names
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6b46bc0c14
commit
0a2374db18
@@ -17,8 +17,9 @@ No options — the **Notifications** global (slug `notifications`, panel group *
|
||||
the texts in the panel (Notifications tab), grouped per context. Group `form`:
|
||||
`success`, `error`, `rateLimited`, `turnstile`, `validation`, `consent`,
|
||||
`notFound` and the multi-step form buttons: `next` ("Next"), `back` ("Back"),
|
||||
`stepOf` ("Step {current} of {total}"). Every empty field → fallback (`NOTIFICATION_FALLBACK`, EN,
|
||||
exported from `@intecion/ipal-kit`).
|
||||
`stepOf` ("Step {current} of {total}"). Every empty field → the built-in default in the page language
|
||||
(`notificationFallback(locale)`: `NOTIFICATION_FALLBACK_PL` for `pl`, else `NOTIFICATION_FALLBACK` — EN;
|
||||
all exported from `@intecion/ipal-kit`). In `validation`, `{field}` is the field's label in the page language.
|
||||
For forms: `getFormTexts(locale)` from `lib/content` = the `form` group in the given language.
|
||||
|
||||
Group `lightbox` (only with `ipalKit({ lightbox: true })` — adds columns, run a migration on Postgres):
|
||||
@@ -81,7 +82,7 @@ users), so the frontend reads them without a session. Write: `editor+` (`adminOr
|
||||
## Turn off, override, extend
|
||||
|
||||
- **Turn off:** none — the `notifications` global is currently always added (also without the `forms` option). The `lightbox` group is opt-in (`ipalKit({ lightbox: true })`); `lightboxNotificationFields` puts it in your own global instead.
|
||||
- **Override texts:** in the panel, per language; empty field → `NOTIFICATION_FALLBACK` (EN).
|
||||
- **Override texts:** in the panel, per language; empty field → `notificationFallback(locale)` (Polish on `pl` pages, English otherwise).
|
||||
The fallbacks cannot be swapped with a plugin option — apply your own default texts in the project
|
||||
on the result of `getNotificationTexts` (e.g. `texts.form.error ||= '…'`).
|
||||
- **Override access / hooks / admin:** `ipalKit({ globalOverrides: { notifications: … } })` — an object merges
|
||||
|
||||
Reference in New Issue
Block a user