mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
a7adef5353
- 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.
288 lines
15 KiB
TypeScript
288 lines
15 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const reservations: TranslationStrings = {
|
|
'reservations.title': 'Bookings',
|
|
'reservations.empty': 'No reservations yet',
|
|
'reservations.emptyHint': 'Add reservations for flights, hotels and more',
|
|
'reservations.add': 'Add Reservation',
|
|
'reservations.addManual': 'Manual Booking',
|
|
'reservations.placeHint': 'Tip: Reservations are best created directly from a place to link them with your day plan.',
|
|
'reservations.confirmed': 'Confirmed',
|
|
'reservations.pending': 'Pending',
|
|
'reservations.summary': '{confirmed} confirmed, {pending} pending',
|
|
'reservations.showFiles': 'Show Files',
|
|
'reservations.editTitle': 'Edit Reservation',
|
|
'reservations.status': 'Status',
|
|
'reservations.datetime': 'Date & Time',
|
|
'reservations.startTime': 'Start time',
|
|
'reservations.endTime': 'End time',
|
|
'reservations.date': 'Date',
|
|
'reservations.time': 'Time',
|
|
'reservations.timeAlt': 'Time (alternative, e.g. 19:30)',
|
|
'reservations.notes': 'Notes',
|
|
'reservations.notesPlaceholder': 'Additional notes...',
|
|
'reservations.urlLabel': 'Link',
|
|
'reservations.urlPlaceholder': 'https://...',
|
|
'reservations.meta.airline': 'Airline',
|
|
'reservations.meta.flightNumber': 'Flight No.',
|
|
'reservations.meta.from': 'From',
|
|
'reservations.meta.to': 'To',
|
|
'reservations.layover.route': 'Route',
|
|
'reservations.layover.stop': 'Stop',
|
|
'reservations.layover.addStop': 'Add stop',
|
|
'reservations.cruise.embark': 'Embarkation',
|
|
'reservations.cruise.disembark': 'Disembarkation',
|
|
'reservations.cruise.port': 'Port of call',
|
|
'reservations.cruise.addPort': 'Add port',
|
|
'reservations.layover.connection': 'Connection',
|
|
'reservations.layover.layover': 'Layover',
|
|
'reservations.needsReview': 'Review',
|
|
'reservations.needsReviewHint':
|
|
'Some details were filled in automatically and could not be read for sure. Please check them.',
|
|
'reservations.reviewConfirm': 'Looks right',
|
|
'reservations.reviewConfirmHint': 'Click to mark it as checked.',
|
|
'reservations.reviewConfirmed': 'Marked as checked',
|
|
'reservations.searchLocation': 'Search station, port, address…',
|
|
'reservations.meta.trainNumber': 'Train No.',
|
|
'reservations.meta.platform': 'Platform',
|
|
'reservations.meta.seat': 'Seat',
|
|
'reservations.meta.checkIn': 'Check-in',
|
|
'reservations.meta.checkInUntil': 'Check-in until',
|
|
'reservations.meta.checkOut': 'Check-out',
|
|
'reservations.meta.linkAccommodation': 'Accommodation',
|
|
'reservations.meta.pickAccommodation': 'Link to accommodation',
|
|
'reservations.meta.noAccommodation': 'None',
|
|
'reservations.meta.hotelPlace': 'Accommodation',
|
|
'reservations.meta.linkPlace': 'Place / Activity',
|
|
'reservations.meta.pickPlace': 'Select place / activity',
|
|
'reservations.meta.pickHotel': 'Select accommodation',
|
|
'reservations.meta.fromDay': 'From',
|
|
'reservations.meta.toDay': 'To',
|
|
'reservations.meta.selectDay': 'Select day',
|
|
'reservations.type.flight': 'Flight',
|
|
'reservations.type.hotel': 'Accommodation',
|
|
'reservations.type.restaurant': 'Restaurant',
|
|
'reservations.type.train': 'Train',
|
|
'reservations.type.car': 'Car',
|
|
'reservations.type.cruise': 'Cruise',
|
|
'reservations.type.event': 'Event',
|
|
'reservations.type.tour': 'Guided tour',
|
|
'reservations.type.parking': 'Parking',
|
|
'reservations.type.other': 'Other',
|
|
'reservations.type.bus': 'Bus',
|
|
'reservations.type.ferry': 'Ferry',
|
|
'reservations.type.cable_car': 'Cable car',
|
|
'reservations.type.bicycle': 'Bicycle',
|
|
'reservations.type.taxi': 'Taxi',
|
|
'reservations.type.transit': 'Public transit',
|
|
'reservations.typeShort.transit': 'Transit',
|
|
'reservations.type.transport_other': 'Other',
|
|
'reservations.confirm.delete': 'Are you sure you want to delete the reservation "{name}"?',
|
|
'reservations.confirm.deleteTitle': 'Delete booking?',
|
|
'reservations.confirm.deleteBody': '"{name}" will be permanently deleted.',
|
|
'reservations.confirm.deleteBodyWithExpense': '"{name}" will be permanently deleted, along with its linked costs.',
|
|
'reservations.toast.updated': 'Reservation updated',
|
|
'reservations.toast.removed': 'Reservation deleted',
|
|
'reservations.toast.filesNotUploaded':
|
|
'The booking is saved, but some files did not upload. Save again to send them.',
|
|
'reservations.newTitle': 'New Reservation',
|
|
'reservations.bookingType': 'Booking Type',
|
|
'reservations.titleLabel': 'Title',
|
|
'reservations.titlePlaceholder': 'e.g. Lufthansa LH123, Hotel Adlon, ...',
|
|
'reservations.locationAddress': 'Location / Address',
|
|
'reservations.locationPlaceholder': 'Address, Airport, Hotel...',
|
|
'reservations.confirmationCode': 'Booking Code',
|
|
'reservations.routeLabel': 'Route',
|
|
'reservations.segmentCodes': 'Segment codes',
|
|
'reservations.confirmationPlaceholder': 'e.g. ABC12345',
|
|
'reservations.day': 'Day',
|
|
'reservations.noDay': 'No Day',
|
|
'reservations.place': 'Place',
|
|
'reservations.noPlace': 'No Place',
|
|
'reservations.pendingSave': 'will be saved…',
|
|
'reservations.uploading': 'Uploading...',
|
|
'reservations.attachFile': 'Attach file',
|
|
'reservations.linkExisting': 'Link existing file',
|
|
'reservations.toast.saveError': 'Failed to save',
|
|
'reservations.toast.updateError': 'Failed to update',
|
|
'reservations.toast.deleteError': 'Failed to delete',
|
|
'reservations.confirm.remove': 'Remove reservation for "{name}"?',
|
|
'reservations.linkAssignment': 'Link to day assignment',
|
|
'reservations.linkedTo': 'Linked to',
|
|
'reservations.pickAssignment': 'Select an assignment from your plan...',
|
|
'reservations.noAssignment': 'No link (standalone)',
|
|
'reservations.price': 'Price',
|
|
'reservations.budgetCategory': 'Budget category',
|
|
'reservations.budgetCategoryPlaceholder': 'e.g. Transport, Accommodation',
|
|
'reservations.budgetCategoryAuto': 'Auto (from booking type)',
|
|
'reservations.budgetHint': 'A budget entry will be created automatically when saving.',
|
|
'reservations.departureDate': 'Departure',
|
|
'reservations.arrivalDate': 'Arrival',
|
|
'reservations.departureTime': 'Dep. time',
|
|
'reservations.arrivalTime': 'Arr. time',
|
|
'reservations.pickupDate': 'Pickup',
|
|
'reservations.returnDate': 'Return',
|
|
'reservations.pickupTime': 'Pickup time',
|
|
'reservations.returnTime': 'Return time',
|
|
'reservations.endDate': 'End date',
|
|
'reservations.meta.departureTimezone': 'Dep. TZ',
|
|
'reservations.meta.arrivalTimezone': 'Arr. TZ',
|
|
'reservations.span.departure': 'Departure',
|
|
'reservations.span.arrival': 'Arrival',
|
|
'reservations.span.inTransit': 'In transit',
|
|
// span.pickup does double duty: the day a rental car is picked up, and the day a
|
|
// multi-day parking ends and you collect your own car again. Both read the same way
|
|
// in every locale, so parking only needs the drop-off wording of its own.
|
|
'reservations.span.pickup': 'Pickup',
|
|
'reservations.span.dropOff': 'Drop-off',
|
|
'reservations.span.return': 'Return',
|
|
'reservations.span.active': 'Active',
|
|
'reservations.span.start': 'Start',
|
|
'reservations.span.end': 'End',
|
|
'reservations.span.ongoing': 'Ongoing',
|
|
'reservations.validation.endBeforeStart': 'End date/time must be after start date/time',
|
|
'reservations.validation.endTimeBeforeStartTime':
|
|
'The end time is before the start time. If it ends the next day, set an end date.',
|
|
'reservations.addBooking': 'Add booking',
|
|
'reservations.import.title': 'Import booking confirmations',
|
|
'reservations.import.cta': 'Import from file',
|
|
'reservations.import.dropHere': 'Drop booking confirmation files here, or click to select',
|
|
'reservations.import.dropActive': 'Drop files to import',
|
|
'reservations.import.pinSearching': 'Looking for it on the map…',
|
|
'reservations.import.pinFound': 'On the map',
|
|
'reservations.import.pinMissingTitle': 'Not on the map yet',
|
|
'reservations.import.pinMissingBody':
|
|
"TREK couldn't find this stay on the map. Check the name and address above and search again, or save it without a pin.",
|
|
'reservations.import.pinRetry': 'Search again',
|
|
'reservations.import.savedWithoutPin':
|
|
'Saved without a map pin. Edit the place and set its location to see it on the map.',
|
|
'reservations.import.acceptedFormats': 'Accepted: EML, PDF, PKPass, HTML, TXT (max 10 MB each, up to 5 files)',
|
|
'reservations.import.acceptedPhotos': 'Photos (JPG, PNG, WEBP) are read by the AI model.',
|
|
'reservations.import.parsing': 'Parsing files…',
|
|
'reservations.import.previewHeading': '{count} reservations found',
|
|
'reservations.import.previewHeading.one': '{count} reservation found',
|
|
'reservations.import.previewEmpty': 'No reservations could be extracted from the uploaded files.',
|
|
'reservations.import.removeItem': 'Remove',
|
|
'reservations.import.needsReview': 'Review',
|
|
'reservations.import.tryAi': 'Try AI parsing',
|
|
'reservations.import.aiParsing': 'Parsing with AI…',
|
|
'reservations.import.confirm': 'Import {count} reservations',
|
|
'reservations.import.confirm.one': 'Import {count} reservation',
|
|
'reservations.import.back': 'Back',
|
|
'reservations.import.success': '{count} reservations imported',
|
|
'reservations.import.success.one': '{count} reservation imported',
|
|
'reservations.import.partialFailure': '{created} imported, {failed} failed',
|
|
'reservations.import.error': 'Parsing failed. Make sure the file is a valid booking confirmation.',
|
|
'reservations.import.unavailable': 'Booking import is not available on this server.',
|
|
'reservations.import.unsupportedFormat': 'Unsupported file format. Use EML, PDF, PKPass, HTML, or TXT.',
|
|
'reservations.import.fileTooLarge': 'File "{name}" exceeds 10 MB limit.',
|
|
'reservations.airtrail.title': 'Import from AirTrail',
|
|
'reservations.airtrail.cta': 'AirTrail',
|
|
'reservations.airtrail.synced': 'AirTrail',
|
|
'reservations.airtrail.syncedHint': 'Synced from AirTrail — edits stay in sync both ways.',
|
|
'reservations.airtrail.notSynced': 'Not synced',
|
|
'reservations.airtrail.notSyncedHint': 'This flight was removed in AirTrail and no longer syncs.',
|
|
'reservations.airtrail.layoverHint':
|
|
'Imported from AirTrail. A multi-leg flight with a layover has no single AirTrail flight to sync back to, so it stays as a one-time import.',
|
|
'reservations.airtrail.loadError': 'Could not load your AirTrail flights.',
|
|
'reservations.airtrail.imported': '{count} flights imported',
|
|
'reservations.airtrail.imported.one': '{count} flight imported',
|
|
'reservations.airtrail.skippedDuplicate': '{count} already in this trip, skipped',
|
|
'reservations.airtrail.skippedDuplicate.one': '{count} already in this trip, skipped',
|
|
'reservations.airtrail.nothingImported': 'Nothing to import.',
|
|
'reservations.airtrail.importError': 'Import failed. Please try again.',
|
|
'reservations.airtrail.undo': 'Import from AirTrail',
|
|
'reservations.airtrail.alreadyImported': 'Imported',
|
|
'reservations.airtrail.duringTrip': 'During this trip',
|
|
'reservations.airtrail.otherFlights': 'Other flights',
|
|
'reservations.airtrail.empty': 'No flights found in your AirTrail account.',
|
|
'reservations.airtrail.importCta': 'Import {count}',
|
|
'reservations.airtrail.importCta.one': 'Import {count}',
|
|
'reservations.airtrail.joinConnection': 'Import as one flight with a layover in {stops}',
|
|
'reservations.costsLabel': 'Costs',
|
|
'reservations.createExpense': 'Create expense',
|
|
'reservations.createExpenseHint': 'Saves the booking, then opens the Costs editor.',
|
|
'reservations.linkedExpense': 'Linked expense',
|
|
'reservations.removeExpense': 'Remove expense',
|
|
'reservations.linkedExpenses': 'Linked expenses',
|
|
'reservations.linkExpense': 'Link existing expense',
|
|
'reservations.unlinkExpense': 'Unlink, keep the expense',
|
|
'reservations.noUnlinkedExpenses': 'No unlinked expenses',
|
|
'reservations.travelers.label': 'Travelers',
|
|
'reservations.travelers.assign': 'Assign travelers',
|
|
'reservations.travelers.none': 'No trip members yet.',
|
|
'reservations.status.switchTo': 'Set to {status}',
|
|
'reservations.view.label': 'View',
|
|
'reservations.view.cards': 'Cards',
|
|
'reservations.view.list': 'List',
|
|
'reservations.view.timeline': 'Timeline',
|
|
'reservations.filter': 'Filter',
|
|
'reservations.searchPlaceholder': 'Search',
|
|
'reservations.results': '{shown} of {total}',
|
|
'reservations.resetFilters': 'Reset filters',
|
|
'reservations.noMatches': 'Nothing matches these filters',
|
|
'reservations.viewOptions': 'View options',
|
|
'reservations.exportCsv': 'Export as spreadsheet (CSV)',
|
|
'reservations.export.type': 'Type',
|
|
'reservations.export.title': 'Title',
|
|
'reservations.export.start': 'Start',
|
|
'reservations.export.end': 'End',
|
|
'reservations.export.from': 'From',
|
|
'reservations.export.to': 'To',
|
|
'reservations.export.location': 'Location',
|
|
'reservations.export.confirmation': 'Confirmation',
|
|
'reservations.export.notes': 'Notes',
|
|
'reservations.resetView': 'Reset view',
|
|
'reservations.group.label': 'Group by',
|
|
'reservations.group.status': 'Status',
|
|
'reservations.group.day': 'Day',
|
|
'reservations.group.type': 'Type',
|
|
'reservations.group.none': 'No grouping',
|
|
'reservations.transitApart': 'Public transit as its own section',
|
|
'reservations.group.before': 'Before the trip',
|
|
'reservations.group.after': 'After the trip',
|
|
'reservations.group.undated': 'No date',
|
|
'reservations.sort.label': 'Sort by',
|
|
'reservations.sort.date': 'Date',
|
|
'reservations.sort.title': 'Title',
|
|
'reservations.sort.type': 'Type',
|
|
'reservations.sort.status': 'Status',
|
|
'reservations.sort.earlyFirst': 'Earliest first',
|
|
'reservations.sort.lateFirst': 'Latest first',
|
|
'reservations.sort.aToZ': 'A to Z',
|
|
'reservations.sort.zToA': 'Z to A',
|
|
'reservations.timeline.dayCount': '{count} days',
|
|
'reservations.timeline.dayCount.one': '{count} day',
|
|
'reservations.timeline.zoom': 'Zoom',
|
|
'reservations.timeline.trip': 'Trip',
|
|
'reservations.timeline.day': 'Day',
|
|
'reservations.timeline.prevDay': 'Previous day',
|
|
'reservations.timeline.nextDay': 'Next day',
|
|
'reservations.timeline.openDay': 'Open {day} by the hour',
|
|
'reservations.timeline.nothingThisDay': 'Nothing on this day.',
|
|
'reservations.timeline.today': 'Today',
|
|
'reservations.timeline.now': 'now',
|
|
'reservations.timeline.byType': 'One lane per type',
|
|
'reservations.timeline.context': 'Show the other tab',
|
|
'reservations.timeline.contextBookings': 'Bookings',
|
|
'reservations.timeline.contextTransports': 'Transports',
|
|
'reservations.timeline.noneDated': 'None of these has a date yet.',
|
|
'reservations.undated': 'No date',
|
|
'reservations.nights': 'Nights',
|
|
'reservations.start': 'Start',
|
|
'reservations.end': 'End',
|
|
'reservations.rename': 'Rename',
|
|
'reservations.copyCode': 'Copy booking code',
|
|
'reservations.copyFailed': 'Could not copy',
|
|
'reservations.showInFiles': 'Show in files',
|
|
'reservations.filesNeedConnection':
|
|
'Files need a connection to upload. Remove the new ones to save the booking offline, or save once you are back online.',
|
|
'reservations.needsConnection': 'This needs a connection. Try again once TREK is back online.',
|
|
'reservations.exportCsvFiltered': 'Export the {shown} of {total} shown rows (CSV)',
|
|
'reservations.wallet.add': 'Add to Apple Wallet',
|
|
'reservations.wallet.addGoogle': 'Add to Google Wallet',
|
|
'reservations.wallet.failed': 'The Wallet pass could not be made. Please try again.',
|
|
'reservations.wallet.undated': 'Give the booking a date first: Wallet brings the pass up around its time.',
|
|
};
|
|
export default reservations;
|