- Theme choice in localStorage under 'theme' (next-themes' key and values)
instead of 'ipal-theme'. ThemeScript moves an old choice before the first
paint and removes the old key; useTheme / ThemeSwitcher do the same
without the script. ipalKit({ theme: { storageKey } }) sets an own key,
which reaches ThemeScript through getSiteShell().theme and <html
data-theme-storage>.
- The cookie scanner declares the theme key (Theme choice: local storage,
necessary, until changed or site data is cleared) when the theme switch
is on, so Scan cookies finds it without a crawl.
- Cookies -> Cookie list rows get a Type (cookie / local storage / session
storage, default cookie, shared by every language), filled by scan, review
and approval. The detailed settings window and <CookieTable> show it with
English and Polish defaults; the approval page marks storage entries.
- Migration: adds cookie_settings_cookies.storage (DEFAULT 'cookie') and
cookie_settings_locales.detail_labels_storage, nothing else.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
22 lines
754 B
TypeScript
22 lines
754 B
TypeScript
import { defineTexts } from '../define.js'
|
|
|
|
/** Admin component texts — consent. Placeholders use Payload's {{name}} syntax. */
|
|
export const consentTexts = defineTexts({
|
|
en: {
|
|
cookieIntegrationAdmin: 'Admin panel login',
|
|
cookieIntegrationConsent: 'Cookie banner',
|
|
cookieIntegrationLocale: 'Language choice',
|
|
cookieIntegrationStats: 'Built-in statistics',
|
|
cookieIntegrationTheme: 'Theme choice',
|
|
cookieSourceProject: 'Project',
|
|
},
|
|
pl: {
|
|
cookieIntegrationAdmin: 'Logowanie do panelu',
|
|
cookieIntegrationConsent: 'Baner cookies',
|
|
cookieIntegrationLocale: 'Wybór języka',
|
|
cookieIntegrationStats: 'Wbudowane statystyki',
|
|
cookieIntegrationTheme: 'Wybór motywu',
|
|
cookieSourceProject: 'Projekt',
|
|
},
|
|
})
|