Admin panel in English and Polish, reworded per docs/dev/admin-ux.md

- admin-i18n module: AdminText { en, pl }, component texts under the ipal
  namespace (project translations win), en + pl admin languages when the
  project sets none (project's supportedLanguages wins)
- every plugin label, description, option, tab and group as { en, pl };
  explicit labels instead of auto-labels; sentence case; glossary terms
- visible renames (slugs, names, data unchanged): Cookie banner, Form
  messages, Privacy group, Search engines, Maintenance, Spam protection,
  E-mail sending, stats nav link Overview (hidden without access)
- Polish visitor defaults by page locale: cookie banner, form messages,
  validators, lightbox, accessibility widget; {field} uses the label
- fixes: e-mail status banner used Turnstile wording; developer words and
  env var names out of editor messages; stats numbers/dates in the admin
  language; test e-mail no longer says ipal-kit
- test/adminUx.test.ts: length limits, en + pl present, no developer words

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-27 15:46:25 +01:00
co-authored by Claude Opus 5.5
parent eeac33ed2f
commit 6b46bc0c14
108 changed files with 2806 additions and 981 deletions
+15 -11
View File
@@ -25,35 +25,39 @@ export function buildFormAnalyticsFields(): Field[] {
name: 'analytics',
type: 'group',
admin: {
description:
'Event pushed to the dataLayer on a successful submit. In GTM, attach a tag (e.g. Lead) with a trigger on this event name.',
description: {
en: 'Sent to Google Tag Manager after a successful submission.',
pl: 'Wysyłane do Google Tag Manager po udanym wysłaniu formularza.',
},
},
fields: [
{
name: 'event',
type: 'text',
admin: {
description:
'Empty = nothing is pushed. Default "form_submit" — attach your GTM trigger to it.',
description: { en: 'Leave empty to send nothing.', pl: 'Zostaw puste, aby nic nie wysyłać.' },
},
defaultValue: 'form_submit',
label: 'Event name',
label: { en: 'Event name', pl: 'Nazwa zdarzenia' },
},
{
name: 'params',
type: 'array',
admin: {
description:
'Key/value pairs sent with the event. A value starting with "$" is taken from a form field, e.g. $topic → the chosen topic.',
description: {
en: 'A value starting with $ is taken from a form field, e.g. $topic.',
pl: 'Wartość zaczynająca się od $ pochodzi z pola formularza, np. $topic.',
},
},
fields: [
{ name: 'key', type: 'text', required: true },
{ name: 'value', type: 'text', required: true },
{ name: 'key', type: 'text', label: { en: 'Key', pl: 'Klucz' }, required: true },
{ name: 'value', type: 'text', label: { en: 'Value', pl: 'Wartość' }, required: true },
],
label: 'Event parameters',
label: { en: 'Event parameters', pl: 'Parametry zdarzenia' },
labels: { plural: { en: 'Parameters', pl: 'Parametry' }, singular: { en: 'Parameter', pl: 'Parametr' } },
},
],
label: 'Analytics (GTM / dataLayer)',
label: { en: 'Analytics event', pl: 'Zdarzenie analityki' },
},
]
}