- contracts/mail-relay refreshed from IWDL 83af8c6 (1.6.0) - an answer that is not the service's JSON is 'not confirmed' unless its status is 400 to 499 - a site with a token issued by hand does not enrol to heal: it stops and says what to ask Intecion for - a store made on another host (a database copied to staging) is not used: the copy enrols as itself, nothing is revoked - the panel calls the service IWSN (RELAY_SHORT_NAME); docs, logs and the doctor keep the full name Co-Authored-By: Claude Fable 5.2 <[email protected]>
231 lines
17 KiB
TypeScript
231 lines
17 KiB
TypeScript
import { RELAY_SHORT_NAME as IWSN } from '../../email/relay/constants.js'
|
|
import { defineTexts } from '../define.js'
|
|
|
|
/** Admin component texts — integrations. Placeholders use Payload's {{name}} syntax. */
|
|
export const integrationsTexts = defineTexts({
|
|
en: {
|
|
// Dashboard alert (IntegrationAlerts)
|
|
alertsAskAdmin: 'Ask an administrator to look at it.',
|
|
alertsHeading: 'An integration needs attention. The site still works.',
|
|
alertsLink: 'Go to Site integrations',
|
|
alertsUnknownError: 'Unknown error.',
|
|
|
|
// Intecion mail service: the state block on the e-mail tab (MailRelayStatus) and its routes
|
|
mailRelayCheck: 'Check now',
|
|
mailRelayConnect: 'Connect again',
|
|
mailRelayConnected: `The site is connected to ${IWSN}.`,
|
|
mailRelayConnectFailed: 'The site could not be connected. {{reason}}',
|
|
mailRelayDisconnect: 'Disconnect',
|
|
mailRelayDisconnectConfirm: `Disconnect the site from ${IWSN}? E-mails will not be sent until you connect again or fill in an SMTP server.`,
|
|
mailRelayDisconnected: `The site is disconnected from ${IWSN}.`,
|
|
mailRelayForbidden: 'Only an administrator can do this.',
|
|
mailRelayHeading: 'How e-mails are sent',
|
|
mailRelayLoadFailed: 'The state could not be read. Try again.',
|
|
mailRelayLoggedOut: 'Your session has ended. Log in again.',
|
|
mailRelayNameReplaced: `${IWSN} did not accept the sender name "{{asked}}", so e-mails leave as "{{used}}". Choose another name below.`,
|
|
mailRelayNoReplyAddress: 'No reply address is set. Fill in "Sender address" below, or replies to these e-mails will be lost.',
|
|
mailRelayOff: `${IWSN} is switched off for this site.`,
|
|
mailRelayQuota: 'Left this hour: {{hour}}. Left today: {{day}}.',
|
|
mailRelayRefusedAddress: `${IWSN} does not know the server this site now runs on. Ask your administrator to have its address added.`,
|
|
mailRelayRefusedCallback: `${IWSN} could not reach this site at {{url}}. Reason: {{reason}}. Ask your administrator.`,
|
|
mailRelayRefusedClosed: `${IWSN} does not take new sites at the moment. Ask your administrator.`,
|
|
mailRelayRefusedHost: `This site has no public address yet ({{host}}). ${IWSN} works once the site runs on its domain.`,
|
|
mailRelayRefusedNoHost: 'The site does not know its own address. Ask your administrator.',
|
|
mailRelayRefusedOther: `${IWSN} answered: {{message}}`,
|
|
mailRelayRefusedToken: `The access key of this site is no longer valid. Ask your administrator for a new one.`,
|
|
mailRelayRepliesTo: 'Replies go to {{address}}.',
|
|
mailRelayStateActive: `Connected to ${IWSN}.`,
|
|
mailRelayStateDisconnected: 'Disconnected. E-mails are not sent until you connect again or fill in an SMTP server.',
|
|
mailRelayStateNotConnected: 'Not connected yet. The site connects by itself when it sends its first e-mail.',
|
|
mailRelayStatePending: 'The site is waiting for approval, so e-mails are not sent yet. Ask your administrator.',
|
|
mailRelayStateSuspended: 'E-mail sending was stopped for this site. Ask your administrator.',
|
|
mailRelayToken: 'Enter an access key',
|
|
mailRelayTokenHint: 'Only when your administrator gave you a key for this site. It is stored and never shown again.',
|
|
mailRelayTokenInvalid: `This is not an access key of ${IWSN}.`,
|
|
mailRelayTokenSave: 'Save the key',
|
|
mailRelayTransportGraph: 'E-mails go through Microsoft Graph. This method will be removed in version 2.0.',
|
|
mailRelayTransportNone: 'No sending method is set up. E-mails are not sent.',
|
|
mailRelayTransportRelay: `E-mails go through ${IWSN}, from {{address}}.`,
|
|
mailRelayTransportSmtp: 'E-mails go through your SMTP server.',
|
|
mailRelayWorking: 'Working…',
|
|
|
|
// Masked secret field
|
|
maskedHide: 'Hide',
|
|
maskedKeep: 'Keep the stored value',
|
|
maskedRemove: 'Remove the stored value',
|
|
maskedRemoved: 'The stored value will be removed when you save.',
|
|
maskedSet: 'A value is set. It is not shown; type a new one to replace it.',
|
|
maskedShow: 'Show',
|
|
secretNotText: 'Enter the value as text.',
|
|
secretReenter: 'Enter the password again: the server, port or user name changed. To use the server without a password, remove the stored value.',
|
|
|
|
// 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
|
|
statusEmailGraphLargeFiles:
|
|
'Microsoft Graph cannot send files of 3 MB and more here, so larger form files are limited or go over SMTP. Ask your administrator.',
|
|
statusEmailGraphUnavailable:
|
|
'Microsoft Graph is selected but not set up on the server, so e-mails go over SMTP. Ask your administrator.',
|
|
statusEmailRelayAttachmentRefused: `${IWSN} does not carry this type of file. The e-mail was not sent.`,
|
|
statusEmailRelayDisconnected: `The site is disconnected from ${IWSN}, so e-mails are not sent. Connect again, or fill in an SMTP server.`,
|
|
statusEmailRelayError: `${IWSN} refused the e-mail. Tell your administrator.`,
|
|
statusEmailRelayNotConfirmed: `${IWSN} did not confirm the last e-mail. It may have been sent.`,
|
|
statusEmailRelayPending: 'The site is waiting for approval, so e-mails are not sent yet. Ask your administrator.',
|
|
statusEmailRelayQuota: `The site reached a sending limit of ${IWSN}. The e-mail was not sent.`,
|
|
statusEmailRelayRecipientSuppressed: `${IWSN} refuses one of the recipients, because earlier e-mails to that address came back. Nothing was sent.`,
|
|
statusEmailRelayRefused: `${IWSN} did not connect this site. See the state above, or fill in an SMTP server.`,
|
|
statusEmailRelaySuspended: 'E-mail sending was stopped for this site. Ask your administrator.',
|
|
statusEmailRelayTooLarge: `The e-mail or its files are larger than ${IWSN} carries. The e-mail was not sent.`,
|
|
statusEmailRelayUnreachable: `${IWSN} could not be reached or failed. The e-mail was probably not sent.`,
|
|
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.',
|
|
testEmailNotConfirmed: `${IWSN} did not confirm the test e-mail. It may have been sent; check the mailbox before trying again.`,
|
|
testEmailRecipient: 'Recipient address',
|
|
testEmailSend: 'Send test e-mail',
|
|
testEmailSending: 'Sending…',
|
|
testEmailSent: 'Test e-mail sent to {{to}}.',
|
|
testEmailSentRelay: `Test e-mail sent to {{to}} through ${IWSN}, as "{{name}}".`,
|
|
testEmailSentSmtp: 'Test e-mail sent to {{to}} through your SMTP server.',
|
|
testEmailSubject: 'Test e-mail from {{site}}',
|
|
testEmailSubjectGeneric: 'Test e-mail from your website',
|
|
testEmailWithFile: 'Attach a 10 MB test file',
|
|
},
|
|
pl: {
|
|
alertsAskAdmin: 'Poproś administratora, aby to sprawdził.',
|
|
alertsHeading: 'Integracja wymaga uwagi. Witryna nadal działa.',
|
|
alertsLink: 'Przejdź do integracji',
|
|
alertsUnknownError: 'Nieznany błąd.',
|
|
|
|
mailRelayCheck: 'Sprawdź teraz',
|
|
mailRelayConnect: 'Połącz ponownie',
|
|
mailRelayConnected: `Witryna jest połączona z ${IWSN}.`,
|
|
mailRelayConnectFailed: 'Nie udało się połączyć witryny. {{reason}}',
|
|
mailRelayDisconnect: 'Rozłącz',
|
|
mailRelayDisconnectConfirm: `Rozłączyć witrynę z ${IWSN}? E-maile nie będą wysyłane, dopóki nie połączysz jej ponownie albo nie uzupełnisz serwera SMTP.`,
|
|
mailRelayDisconnected: `Witryna jest rozłączona z ${IWSN}.`,
|
|
mailRelayForbidden: 'Tylko administrator może to zrobić.',
|
|
mailRelayHeading: 'Jak wysyłane są e-maile',
|
|
mailRelayLoadFailed: 'Nie udało się odczytać stanu. Spróbuj ponownie.',
|
|
mailRelayLoggedOut: 'Sesja wygasła. Zaloguj się ponownie.',
|
|
mailRelayNameReplaced: `${IWSN} nie przyjął nazwy nadawcy „{{asked}}”, więc e-maile wychodzą jako „{{used}}”. Wybierz inną nazwę poniżej.`,
|
|
mailRelayNoReplyAddress: 'Nie ustawiono adresu do odpowiedzi. Uzupełnij „Adres nadawcy” poniżej, inaczej odpowiedzi na te e-maile przepadną.',
|
|
mailRelayOff: `${IWSN} jest wyłączony dla tej witryny.`,
|
|
mailRelayQuota: 'Pozostało w tej godzinie: {{hour}}. Pozostało dziś: {{day}}.',
|
|
mailRelayRefusedAddress: `${IWSN} nie zna serwera, na którym teraz działa witryna. Poproś administratora o dodanie jego adresu.`,
|
|
mailRelayRefusedCallback: `${IWSN} nie mógł połączyć się z witryną pod adresem {{url}}. Powód: {{reason}}. Zapytaj administratora.`,
|
|
mailRelayRefusedClosed: `${IWSN} nie przyjmuje teraz nowych witryn. Zapytaj administratora.`,
|
|
mailRelayRefusedHost: `Witryna nie ma jeszcze publicznego adresu ({{host}}). ${IWSN} zadziała, gdy witryna będzie dostępna pod swoją domeną.`,
|
|
mailRelayRefusedNoHost: 'Witryna nie zna własnego adresu. Zapytaj administratora.',
|
|
mailRelayRefusedOther: `${IWSN} odpowiedział: {{message}}`,
|
|
mailRelayRefusedToken: `Klucz dostępu tej witryny stracił ważność. Poproś administratora o nowy.`,
|
|
mailRelayRepliesTo: 'Odpowiedzi trafiają na adres {{address}}.',
|
|
mailRelayStateActive: `Połączono z ${IWSN}.`,
|
|
mailRelayStateDisconnected: 'Rozłączono. E-maile nie są wysyłane, dopóki nie połączysz witryny ponownie albo nie uzupełnisz serwera SMTP.',
|
|
mailRelayStateNotConnected: 'Jeszcze nie połączono. Witryna połączy się sama, gdy wyśle pierwszy e-mail.',
|
|
mailRelayStatePending: 'Witryna czeka na zatwierdzenie, więc e-maile nie są jeszcze wysyłane. Zapytaj administratora.',
|
|
mailRelayStateSuspended: 'Wysyłka e-maili z tej witryny została wstrzymana. Zapytaj administratora.',
|
|
mailRelayToken: 'Wpisz klucz dostępu',
|
|
mailRelayTokenHint: 'Tylko jeśli administrator przekazał Ci klucz dla tej witryny. Klucz zostanie zapisany i nie będzie więcej pokazywany.',
|
|
mailRelayTokenInvalid: `To nie jest klucz dostępu ${IWSN}.`,
|
|
mailRelayTokenSave: 'Zapisz klucz',
|
|
mailRelayTransportGraph: 'E-maile idą przez Microsoft Graph. Ten sposób zostanie usunięty w wersji 2.0.',
|
|
mailRelayTransportNone: 'Nie ustawiono żadnego sposobu wysyłki. E-maile nie są wysyłane.',
|
|
mailRelayTransportRelay: `E-maile idą przez ${IWSN}, z adresu {{address}}.`,
|
|
mailRelayTransportSmtp: 'E-maile idą przez Twój serwer SMTP.',
|
|
mailRelayWorking: 'Trwa…',
|
|
|
|
maskedHide: 'Ukryj',
|
|
maskedKeep: 'Zostaw zapisaną wartość',
|
|
maskedRemove: 'Usuń zapisaną wartość',
|
|
maskedRemoved: 'Zapisana wartość zostanie usunięta po zapisaniu.',
|
|
maskedSet: 'Wartość jest ustawiona. Nie jest wyświetlana; wpisz nową, aby ją zastąpić.',
|
|
maskedShow: 'Pokaż',
|
|
secretNotText: 'Wpisz wartość jako tekst.',
|
|
secretReenter: 'Wpisz hasło ponownie: zmienił się serwer, port lub nazwa użytkownika. Aby używać serwera bez hasła, usuń zapisaną wartość.',
|
|
|
|
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}}.',
|
|
|
|
statusEmailGraphLargeFiles:
|
|
'Microsoft Graph nie może tu wysyłać plików od 3 MB, więc większe pliki z formularzy są ograniczone lub idą przez SMTP. Zapytaj administratora.',
|
|
statusEmailGraphUnavailable:
|
|
'Wybrano Microsoft Graph, ale nie jest on skonfigurowany na serwerze, więc e-maile idą przez SMTP. Zapytaj administratora.',
|
|
statusEmailRelayAttachmentRefused: `${IWSN} nie przesyła plików tego typu. E-mail nie został wysłany.`,
|
|
statusEmailRelayDisconnected: `Witryna jest rozłączona z ${IWSN}, więc e-maile nie są wysyłane. Połącz ją ponownie albo uzupełnij serwer SMTP.`,
|
|
statusEmailRelayError: `${IWSN} odrzucił e-mail. Powiadom administratora.`,
|
|
statusEmailRelayNotConfirmed: `${IWSN} nie potwierdził ostatniego e-maila. Mógł zostać wysłany.`,
|
|
statusEmailRelayPending: 'Witryna czeka na zatwierdzenie, więc e-maile nie są jeszcze wysyłane. Zapytaj administratora.',
|
|
statusEmailRelayQuota: `Witryna osiągnęła limit wysyłki w ${IWSN}. E-mail nie został wysłany.`,
|
|
statusEmailRelayRecipientSuppressed: `${IWSN} odrzuca jednego z odbiorców, bo wcześniejsze e-maile na ten adres wróciły. Nic nie zostało wysłane.`,
|
|
statusEmailRelayRefused: `${IWSN} nie połączył tej witryny. Zobacz stan powyżej albo uzupełnij serwer SMTP.`,
|
|
statusEmailRelaySuspended: 'Wysyłka e-maili z tej witryny została wstrzymana. Zapytaj administratora.',
|
|
statusEmailRelayTooLarge: `E-mail lub jego pliki są większe, niż przesyła ${IWSN}. E-mail nie został wysłany.`,
|
|
statusEmailRelayUnreachable: `${IWSN} był nieosiągalny albo zawiódł. E-mail prawdopodobnie nie został wysłany.`,
|
|
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.',
|
|
testEmailNotConfirmed: `${IWSN} nie potwierdził testowego e-maila. Mógł zostać wysłany; sprawdź skrzynkę, zanim spróbujesz ponownie.`,
|
|
testEmailRecipient: 'Adres odbiorcy',
|
|
testEmailSend: 'Wyślij testowy e-mail',
|
|
testEmailSending: 'Wysyłanie…',
|
|
testEmailSent: 'Testowy e-mail wysłano na adres {{to}}.',
|
|
testEmailSentRelay: `Testowy e-mail wysłano na adres {{to}} przez ${IWSN}, jako „{{name}}”.`,
|
|
testEmailSentSmtp: 'Testowy e-mail wysłano na adres {{to}} przez Twój serwer SMTP.',
|
|
testEmailSubject: 'Testowy e-mail z witryny {{site}}',
|
|
testEmailSubjectGeneric: 'Testowy e-mail z witryny',
|
|
testEmailWithFile: 'Dołącz plik testowy 10 MB',
|
|
},
|
|
})
|