Cookies: fill empty languages, and one Cookies entry in the admin
Every language filled (fillEmptyLocales, default on): text saved in one language goes to every language where the same field is still empty, never over a language's own text. Applies to the cookie list (purpose, duration) and the cookie review (purpose, duration). Scanner and approval writes give a language without its own text the default language's text. Building blocks: buildFillEmptyLocalesGlobalHook / CollectionHook, fillEmptyLocales, withFillLocales. One Cookies entry (cookieScanner.adminLayout, default combined): the Cookie banner global is now labelled Cookies and gets Review and approve (scan box and approval list inline) and Site check tabs, built from ui fields. Cookie review and Cookie check leave the navigation (admin.group false) but keep their pages, data and API. This is presentation only: no schema change and no migration, only generate:importmap. adminLayout separate keeps the old layout. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a9e1adc03b
commit
b10c2dc0e3
@@ -82,6 +82,16 @@ export type IpalOptions = {
|
||||
*/
|
||||
enabled?: boolean
|
||||
|
||||
/**
|
||||
* Text written in one language fills the same field in every language that is
|
||||
* still empty; a language with its own text is never overwritten. Default on
|
||||
* for the cookie list (`cookie-settings`: `cookies.purpose`, `cookies.duration`)
|
||||
* and the cookie review (`cookie-review`: `purpose`, `retention`). `false` turns
|
||||
* it off; an object sets the fields per slug (`[]` = off for that slug).
|
||||
* Building blocks: buildFillEmptyLocalesGlobalHook / …CollectionHook.
|
||||
*/
|
||||
fillEmptyLocales?: { 'cookie-review'?: string[]; 'cookie-settings'?: string[] } | boolean
|
||||
|
||||
/**
|
||||
* Forms — form-builder collections (forms, form-submissions) plus the
|
||||
* callable submitForm (Turnstile + persistence + SMTP-from-panel email).
|
||||
|
||||
Reference in New Issue
Block a user