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
+112
View File
@@ -0,0 +1,112 @@
import { defineTexts } from '../define.js'
/**
* Admin component texts — content (statistics, SEO hints, row labels).
* Placeholders use Payload's {{name}} syntax. Plural sets end in One / Few /
* Many / Other (Intl.PluralRules categories); English uses One and Other.
*/
export const contentTexts = defineTexts({
en: {
// Statistics: nav link, view, widget, chart
statsBack: 'Back to statistics',
statsChartDay: '{{day}} · Visits: {{visits}} · Page views: {{views}}',
statsChartTable: 'Table',
statsColDay: 'Day',
statsColDevice: 'Device',
statsColEntryPage: 'Entry page',
statsColLastVisit: 'Last visit',
statsColPage: 'Page',
statsColReferrer: 'Referrer',
statsColViews: 'Views',
statsColVisitor: 'Visitor',
statsConsentedVisits: 'Visits with analytics consent',
statsDeviceDesktop: 'Desktop',
statsDeviceMobile: 'Mobile',
statsDeviceTablet: 'Tablet',
statsDirect: '(direct)',
statsFrom: 'from {{referrer}}',
statsIntro: 'Last 30 days, counted without cookies and without storing IP addresses.',
statsNavLink: 'Overview',
statsNoAccess: 'You do not have access to statistics.',
statsNoData: 'No data yet. It appears after the first visits.',
statsNoVisitors: 'No visitor has accepted analytics cookies yet.',
statsPagesFew: '{{count}} pages',
statsPagesMany: '{{count}} pages',
statsPagesOne: '{{count}} page',
statsPagesOther: '{{count}} pages',
statsPagesPerVisit: 'Pages per visit',
statsPageViews: 'Page views',
statsSinglePageVisits: 'Single-page visits',
statsTitle: 'Statistics',
statsUnknownDevice: 'Unknown device',
statsVisitorErase: 'To erase this visitor’s data, filter the visits list by this visitor ID and delete the results.',
statsVisitorHeading: 'Visitor',
statsVisitorHistory: 'Visitor history (with consent)',
statsVisitorLink: 'Visitor {{id}}',
statsVisitorVisitsFew: '{{count}} visits recorded with analytics consent.',
statsVisitorVisitsMany: '{{count}} visits recorded with analytics consent.',
statsVisitorVisitsOne: '{{count}} visit recorded with analytics consent.',
statsVisitorVisitsOther: '{{count}} visits recorded with analytics consent.',
statsVisits: 'Visits',
statsVisitsPerDay: 'Visits per day',
statsWidgetLink: 'All statistics',
statsWidgetSummary: 'Last 30 days · Visits: {{visits}} · Page views: {{views}}',
// SEO: description check under the search result description
seoDescEmpty: 'Empty. The page uses the site description, the same as every other page.',
seoDescEmptyAutoFill: 'Empty. On save it is filled from the page content; writing your own is better.',
seoDescSameAs: 'Same description as “{{name}}”. Google ignores a description repeated across pages; make each one unique.',
seoDescSameAsSite: 'Same as the site description. Google ignores a description repeated across pages; write one for this page.',
// Array rows without a name
rowLabelItem: 'Item',
},
pl: {
rowLabelItem: 'Element',
seoDescEmpty: 'Puste. Strona użyje opisu witryny, takiego samego jak na innych stronach.',
seoDescEmptyAutoFill: 'Puste. Przy zapisie zostanie uzupełnione treścią strony; lepiej napisać własny opis.',
seoDescSameAs: 'Taki sam opis jak na stronie „{{name}}”. Google pomija opis powtarzany na wielu stronach; każdy powinien być inny.',
seoDescSameAsSite: 'Taki sam jak opis witryny. Google pomija opis powtarzany na wielu stronach; napisz opis tej strony.',
statsBack: 'Wróć do statystyk',
statsChartDay: '{{day}} · Wizyty: {{visits}} · Odsłony: {{views}}',
statsChartTable: 'Tabela',
statsColDay: 'Dzień',
statsColDevice: 'Urządzenie',
statsColEntryPage: 'Strona wejścia',
statsColLastVisit: 'Ostatnia wizyta',
statsColPage: 'Strona',
statsColReferrer: 'Strona odsyłająca',
statsColViews: 'Odsłony',
statsColVisitor: 'Odwiedzający',
statsConsentedVisits: 'Wizyty ze zgodą na analitykę',
statsDeviceDesktop: 'Komputer',
statsDeviceMobile: 'Telefon',
statsDeviceTablet: 'Tablet',
statsDirect: '(bezpośrednio)',
statsFrom: 'z {{referrer}}',
statsIntro: 'Ostatnie 30 dni, liczone bez cookies i bez zapisywania adresów IP.',
statsNavLink: 'Przegląd',
statsNoAccess: 'Brak dostępu do statystyk.',
statsNoData: 'Brak danych. Pojawią się po pierwszych wizytach.',
statsNoVisitors: 'Żaden odwiedzający nie zaakceptował jeszcze cookies analitycznych.',
statsPagesFew: '{{count}} strony',
statsPagesMany: '{{count}} stron',
statsPagesOne: '{{count}} strona',
statsPagesOther: '{{count}} strony',
statsPagesPerVisit: 'Strony na wizytę',
statsPageViews: 'Odsłony',
statsSinglePageVisits: 'Wizyty jednostronicowe',
statsTitle: 'Statystyki',
statsUnknownDevice: 'Nieznane urządzenie',
statsVisitorErase: 'Aby usunąć dane tego odwiedzającego, przefiltruj listę wizyt po jego identyfikatorze i usuń wyniki.',
statsVisitorHeading: 'Odwiedzający',
statsVisitorHistory: 'Historia odwiedzających (za zgodą)',
statsVisitorLink: 'Odwiedzający {{id}}',
statsVisitorVisitsFew: '{{count}} wizyty zapisane za zgodą na analitykę.',
statsVisitorVisitsMany: '{{count}} wizyt zapisanych za zgodą na analitykę.',
statsVisitorVisitsOne: '{{count}} wizyta zapisana za zgodą na analitykę.',
statsVisitorVisitsOther: '{{count}} wizyty zapisanej za zgodą na analitykę.',
statsVisits: 'Wizyty',
statsVisitsPerDay: 'Wizyty dziennie',
statsWidgetLink: 'Wszystkie statystyki',
statsWidgetSummary: 'Ostatnie 30 dni · Wizyty: {{visits}} · Odsłony: {{views}}',
},
})