Files
TREK/shared/src/i18n/en/mailAdmin.ts
T
Maurice a7adef5353 feat(mail-ingest): admin card, review mark, inbox events and links, translations
- Admin settings (desktop and phone, self-hosted only): the instance switch,
  how mail arrives (IMAP or a signed webhook) with its fields, the address
  template, the AI allowance per person and day, a connection test and the
  status in counts. Changed fields only are saved; secrets stay masked.
- The review mark of an imported booking takes its mark off: the pill in the
  desktop dialog and a row in the phone's transport sheet ('Looks right'),
  through the ordinary booking update. Its hint no longer speaks of airports.
- The inbox follows mailInbox:changed and mailInbox:settings, and
  ?inbox=mail (the 'bookings waiting' notification) opens it.
- mailIngestRepo: the online-only path the views take, answers parsed
  against the shared contracts.
- Dropped 'read with AI' and the unused mail-review contract: the server
  reads a passing AI failure again on its own.
- mailInbox, mailAdmin and the new reservation, settings and notification
  strings in all 28 locales; the pending notice is a plural group.
- The live flight line on the booking cards is one of the card's fields,
  full width on the phone; the phone's live card keeps its map to the middle.
- Admin flight and mail cards sit in the left column.
2026-11-13 18:31:07 +01:00

47 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { TranslationStrings } from '../types';
const mailAdmin: TranslationStrings = {
'mailAdmin.title': 'Booking mail import',
'mailAdmin.hint': 'Forwarded booking confirmations become bookings in the right trip.',
'mailAdmin.enabled': 'Import booking mails',
'mailAdmin.enabledHint': 'Gives everyone on this install a forwarding address. Off, no address takes mail.',
'mailAdmin.transport.label': 'How mail arrives',
'mailAdmin.transport.off': 'Upload only',
'mailAdmin.transport.imap': 'IMAP mailbox',
'mailAdmin.transport.webhook': 'Webhook',
'mailAdmin.aiDaily': 'AI mails per person and day',
'mailAdmin.aiDailyHint': 'Above it, only machine-readable booking data is read.',
'mailAdmin.template': 'Address template',
'mailAdmin.templateHint': 'The forwarding address, with {token} where each person’s code goes.',
'mailAdmin.imap.host': 'Server',
'mailAdmin.imap.port': 'Port',
'mailAdmin.imap.tls': 'Encryption',
'mailAdmin.imap.user': 'User',
'mailAdmin.imap.pass': 'Password',
'mailAdmin.imap.mailbox': 'Folder',
'mailAdmin.imap.mailboxHint': 'Read mails move on to TREK/processed.',
'mailAdmin.webhook.secret': 'Signing secret',
'mailAdmin.webhook.secretHint':
'At least 32 characters; the sender signs every mail with it. Empty switches the webhook off.',
'mailAdmin.inboundUrl': 'Webhook address',
'mailAdmin.inboundUrlHint': 'Your mail service posts each mail here, raw and signed.',
'mailAdmin.copyUrl': 'Copy address',
'mailAdmin.envHint': 'Environment variables (MAIL_INGEST_*) win over these fields.',
'mailAdmin.loadError': 'The mail import settings could not be loaded.',
'mailAdmin.problem.secretShort': 'The secret needs at least 32 characters.',
'mailAdmin.problem.portInvalid': 'Enter a port between 1 and 65535.',
'mailAdmin.problem.templateToken': 'The address needs {token} for each person’s code.',
'mailAdmin.problem.dailyInvalid': 'Enter a whole number from 0 to 1000.',
'mailAdmin.status.title': 'Status',
'mailAdmin.status.lastRead': 'Last read {time}',
'mailAdmin.status.never': 'never',
'mailAdmin.status.mails': 'Mails, 24 h',
'mailAdmin.status.added': 'Added on their own',
'mailAdmin.status.waiting': 'Waiting',
'mailAdmin.status.failed': 'Failed',
'mailAdmin.test.run': 'Test connection',
'mailAdmin.test.ok': 'Connected',
'mailAdmin.test.failed': 'No connection',
};
export default mailAdmin;