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
@@ -0,0 +1,104 @@
import { defineTexts } from '../define.js'
/** Admin component texts — integrations. Placeholders use Payload's {{name}} syntax. */
export const integrationsTexts = defineTexts({
en: {
// Dashboard alert (IntegrationAlerts)
alertsHeading: 'An integration needs attention. The site still works.',
alertsLink: 'Go to Site integrations',
alertsUnknownError: 'Unknown error.',
// Masked secret field
maskedHide: 'Hide',
maskedShow: 'Show',
// Status banner on an integration's tab (IntegrationStatusBanner)
statusCode: 'Code: {{code}}.',
statusEmailFailing: 'E-mail sending is not working. Form notifications may not arrive.',
statusEmailHint: 'Correct the settings below, save and send a test e-mail.',
statusFailing: '{{label}} is not working.',
statusHint: 'Correct the settings below and save.',
statusLastChecked: 'Last checked {{date}}.',
statusSince: 'Since {{date}}.',
statusTurnstileFailing: 'Spam protection is not working. Forms are accepted without this check.',
statusTurnstileHint: 'Correct the keys below and save. The status updates after the next form submission.',
statusWorking: '{{label}}: working.',
statusWorkingSince: '{{label}}: working since {{date}}.',
// Status messages, by status code
statusEmailGraphUnavailable:
'Microsoft Graph is selected but not set up on the server, so e-mails go over SMTP. Ask your administrator.',
statusTurnstileBadResponse: 'Cloudflare sent an unexpected response.',
statusTurnstileInternalError: 'Cloudflare reported an internal error. It usually passes on its own.',
statusTurnstileInvalidSecret: 'Cloudflare rejected the secret key. Both keys must come from the same widget.',
statusTurnstileMissingSecret: 'The secret key is missing.',
statusTurnstileNetworkError: 'The server could not reach Cloudflare.',
statusTurnstileNoSecretKey: 'The secret key is missing, so spam protection is off. Fill in both keys or clear both.',
statusTurnstileNoSiteKey: 'The site key is missing, so spam protection is off. Fill in both keys or clear both.',
// Test e-mail (button + endpoint)
testEmailBody: 'This is a test message from {{site}}. If it arrived, e-mail sending works.',
testEmailBodyGeneric: 'This is a test message from your website. If it arrived, e-mail sending works.',
testEmailFailed: 'The test e-mail was not sent. Check the settings above and try again.',
testEmailForbidden: 'Only an administrator can send a test e-mail.',
testEmailHint: 'Save your changes first. The test uses the saved settings.',
testEmailInvalidRecipient: 'Enter a valid e-mail address, e.g. [email protected].',
testEmailLabel: 'Test e-mail',
testEmailLoggedOut: 'Your session has ended. Log in again.',
testEmailNoConnection: 'Could not reach the server. Check your connection and try again.',
testEmailNotConfigured: 'Fill in the server, user name and password, then save.',
testEmailRecipient: 'Recipient address',
testEmailSend: 'Send test e-mail',
testEmailSending: 'Sending…',
testEmailSent: 'Test e-mail sent to {{to}}.',
testEmailSubject: 'Test e-mail from {{site}}',
testEmailSubjectGeneric: 'Test e-mail from your website',
},
pl: {
alertsHeading: 'Integracja wymaga uwagi. Witryna nadal działa.',
alertsLink: 'Przejdź do integracji',
alertsUnknownError: 'Nieznany błąd.',
maskedHide: 'Ukryj',
maskedShow: 'Pokaż',
statusCode: 'Kod: {{code}}.',
statusEmailFailing: 'Wysyłka e-mail nie działa. Powiadomienia z formularzy mogą nie docierać.',
statusEmailHint: 'Popraw ustawienia poniżej, zapisz i wyślij testowy e-mail.',
statusFailing: '{{label}}: nie działa.',
statusHint: 'Popraw ustawienia poniżej i zapisz.',
statusLastChecked: 'Ostatnie sprawdzenie: {{date}}.',
statusSince: 'Od {{date}}.',
statusTurnstileFailing: 'Ochrona przed spamem nie działa. Formularze są przyjmowane bez tej kontroli.',
statusTurnstileHint: 'Popraw klucze poniżej i zapisz. Status odświeży się po następnym zgłoszeniu z formularza.',
statusWorking: '{{label}}: działa.',
statusWorkingSince: '{{label}}: działa od {{date}}.',
statusEmailGraphUnavailable:
'Wybrano Microsoft Graph, ale nie jest on skonfigurowany na serwerze, więc e-maile idą przez SMTP. Zapytaj administratora.',
statusTurnstileBadResponse: 'Cloudflare zwrócił nieoczekiwaną odpowiedź.',
statusTurnstileInternalError: 'Cloudflare zgłosił błąd wewnętrzny. Zwykle ustępuje samoczynnie.',
statusTurnstileInvalidSecret: 'Cloudflare odrzucił klucz tajny. Oba klucze muszą pochodzić z tego samego widżetu.',
statusTurnstileMissingSecret: 'Brak klucza tajnego.',
statusTurnstileNetworkError: 'Serwer nie może połączyć się z Cloudflare.',
statusTurnstileNoSecretKey: 'Brak klucza tajnego, więc ochrona przed spamem jest wyłączona. Uzupełnij oba klucze albo usuń oba.',
statusTurnstileNoSiteKey: 'Brak klucza witryny, więc ochrona przed spamem jest wyłączona. Uzupełnij oba klucze albo usuń oba.',
testEmailBody: 'To jest wiadomość testowa z witryny {{site}}. Jeśli dotarła, wysyłka e-mail działa.',
testEmailBodyGeneric: 'To jest wiadomość testowa z witryny. Jeśli dotarła, wysyłka e-mail działa.',
testEmailFailed: 'Nie wysłano testowego e-maila. Sprawdź ustawienia powyżej i spróbuj ponownie.',
testEmailForbidden: 'Tylko administrator może wysłać testowy e-mail.',
testEmailHint: 'Najpierw zapisz zmiany. Test używa zapisanych ustawień.',
testEmailInvalidRecipient: 'Wpisz poprawny adres e-mail, np. [email protected].',
testEmailLabel: 'Testowy e-mail',
testEmailLoggedOut: 'Sesja wygasła. Zaloguj się ponownie.',
testEmailNoConnection: 'Brak połączenia z serwerem. Sprawdź połączenie i spróbuj ponownie.',
testEmailNotConfigured: 'Uzupełnij serwer, nazwę użytkownika i hasło, a następnie zapisz.',
testEmailRecipient: 'Adres odbiorcy',
testEmailSend: 'Wyślij testowy e-mail',
testEmailSending: 'Wysyłanie…',
testEmailSent: 'Testowy e-mail wysłano na adres {{to}}.',
testEmailSubject: 'Testowy e-mail z witryny {{site}}',
testEmailSubjectGeneric: 'Testowy e-mail z witryny',
},
})