The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
feat(bookings): cruises list their ports of call with arrival and departure (#1807)
Mauriceb6b49046649a
diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsxindex 51a38a3cd..3a4bda72f 100644--- a/client/src/components/PDF/TripPDF.tsx+++ b/client/src/components/PDF/TripPDF.tsx@@ -18,7 +18,7 @@ import { buildTripMapSvg } from './tripMapSvg'import { renderTripMapImage } from './tripMapImage'import { formatDistance } from '../../utils/units'import { fetchExchangeRates } from '../../hooks/useExchangeRates'-import { getFlightLegs, getTrainLegs } from '../../utils/flightLegs'+import { getFlightLegs, getTrainLegs, usesStationRoute } from '../../utils/flightLegs'import { isServiceStopType } from '../Roadtrip/roadtripModel'import { onlyMyPlan } from './pdfScope'@@ -445,7 +445,7 @@ export async function downloadTripPDF({ trip, days, places, assignments: allStor// carry — read back from the booking by index. At the gate that is// the code the airline asks for (#1943), so losing it here would// have been a real regression for a stopover flight.- const source = (r.type === 'train' ? getTrainLegs(r) : getFlightLegs(r))[l.index]+ const source = (usesStationRoute(r.type) ? getTrainLegs(r) : getFlightLegs(r))[l.index]subtitleLines = [[l.airline, l.flight_number, l.train_number,l.platform ? `Gl. ${l.platform}` : '',diff --git a/client/src/components/Planner/TransportModal.test.tsx b/client/src/components/Planner/TransportModal.test.tsxindex 78bfdcac2..35ec0bfae 100644--- a/client/src/components/Planner/TransportModal.test.tsx+++ b/client/src/components/Planner/TransportModal.test.tsx@@ -572,6 +572,30 @@ describe('TransportModal', () => {expect(payload.metadata.train_number).toBe('ICE 100'); // flat mirror of leg 0});+ it('FE-PLANNER-TRANSMODAL-1807: a cruise lists its ports with times, without train fields, and saves them as legs', async () => {+ const onSave = vi.fn().mockResolvedValue(undefined);+ render(<TransportModal {...defaultProps} onSave={onSave} />);+ await pickType(/^Cruise$/i);+ await userEvent.type(screen.getByPlaceholderText(/e\.g\. Lufthansa/i), 'Baltic cruise');+ expect(screen.getByText('Embarkation')).toBeInTheDocument();+ expect(screen.getByText('Disembarkation')).toBeInTheDocument();+ expect(screen.queryByPlaceholderText('ICE 123')).not.toBeInTheDocument();+ await userEvent.click(screen.getByRole('button', { name: /Add port/i }));+ expect(screen.getByText('Port of call')).toBeInTheDocument();+ const ports = screen.getAllByTestId('location-select');+ fireEvent.change(ports[0], { target: { value: 'Kiel' } });+ fireEvent.change(ports[1], { target: { value: 'Tallinn' } });+ fireEvent.change(ports[2], { target: { value: 'Kiel' } });+ await userEvent.click(screen.getByRole('button', { name: /^Add$/i }));+ await waitFor(() => expect(onSave).toHaveBeenCalled());+ const payload = onSave.mock.calls[0][0];+ expect(payload.type).toBe('cruise');+ expect(payload.endpoints.map((e: { role: string; name: string }) => `${e.role}:${e.name}`)).toEqual(['from:Kiel', 'stop:Tallinn', 'to:Kiel']);+ expect(payload.metadata.legs).toHaveLength(2);+ expect(payload.metadata.legs[1]).toMatchObject({ from: 'Tallinn', to: 'Kiel' });+ expect(payload.metadata.legs[0].train_number).toBeUndefined();+ });+it('FE-PLANNER-TRANSMODAL-027: a train with a day + train number but no geocoded station still saves them (#1150 regression)', async () => {const days = [{ id: 10, trip_id: 1, day_number: 1, date: '2026-08-01', title: 'Day 1' }] as any;const onSave = vi.fn().mockResolvedValue(undefined);diff --git a/client/src/components/Planner/TransportModal.tsx b/client/src/components/Planner/TransportModal.tsxindex 8aed3a65a..42a3abc1d 100644--- a/client/src/components/Planner/TransportModal.tsx+++ b/client/src/components/Planner/TransportModal.tsx@@ -15,7 +15,7 @@ import { useTripStore } from '../../store/tripStore'import { useAddonStore } from '../../store/addonStore'import { formatDate, splitReservationDateTime, resolveDayId } from '../../utils/formatters'import type { Day, Place, Accommodation, Reservation, ReservationEndpoint, TripFile, BudgetItem, AssignmentsMap } from '../../types'-import { parseReservationMetadata, orderedEndpoints, stripAirportCode } from '../../utils/flightLegs'+import { parseReservationMetadata, orderedEndpoints, stripAirportCode, usesStationRoute } from '../../utils/flightLegs'import { BookingCostsSection } from './BookingCostsSection'import { BookingLinkAndFiles } from './BookingLinkAndFiles'import { importedPriceEntry } from './importedPrice'@@ -209,6 +209,9 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel// the post-save handler knows to open the Costs editor for the saved booking.const expenseIntentRef = useRef<{ editItem?: BudgetItem; create?: boolean } | null>(null)const [form, setForm] = useState({ ...defaultForm })+ // Trains and cruises share the station form: a row of stops, each with its own+ // arrival and departure (#1807).+ const stationRoute = usesStationRoute(form.type)// Manual vs Automated (public transit search) creation mode (#1065).const [automated, setAutomated] = useState(false)const [isSaving, setIsSaving] = useState(false)@@ -332,7 +335,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, selwps = [dep, arr]}setWaypoints(wps)- } else if (type === 'train') {+ } else if (usesStationRoute(type)) {// Mirror the flight seeding with stations + per-leg train fields. A// current single-leg train (2 endpoints, no metadata.legs) round-trips// through the >=2 branch: the flat train_number/platform/seat land on@@ -433,10 +436,10 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel// like the old form fields, so a train with no map-picked station still// saves its day/time/train number). Only geocoded stations become map// endpoints + legs, mirroring the old "push only if the location is set".- const trainWps = form.type === 'train' ? trainWaypoints : []+ const trainWps = stationRoute ? trainWaypoints : []const firstTrainWp = trainWps[0]const lastTrainWp = trainWps[trainWps.length - 1]- const trainStations = form.type === 'train' ? trainWaypoints.filter(w => w.location) : []+ const trainStations = stationRoute ? trainWaypoints.filter(w => w.location) : []// Per-leg day-plan positions are owned by the day planner, not this form — keep// them when re-saving so editing a flight doesn't reset where its legs sit.const origLegs: any[] = reservation ? (parseReservationMetadata(reservation).legs || []) : []@@ -475,7 +478,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel})}if (firstWp?.seat) metadata.seat = firstWp.seat- } else if (form.type === 'train') {+ } else if (stationRoute) {// Flat keys mirror the first leg so legacy readers keep working; a// 2-station train emits exactly {train_number?,platform?,seat?} — the// same shape it saved before this feature.@@ -535,7 +538,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, selconst time = isLast ? w.arrTime : w.depTimeendpoints.push(endpointFromAirport(w.airport!, role, i, dayDate(dId), time || null))})- } else if (form.type === 'train') {+ } else if (stationRoute) {trainStations.forEach((w, i) => {const isFirst = i === 0const isLast = i === trainStations.length - 1@@ -579,16 +582,16 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, seltitle: form.title,type: form.type,status: form.status,- day_id: form.type === 'flight' ? flightDepDay : form.type === 'train' ? trainDepDay : (form.start_day_id ? Number(form.start_day_id) : null),- end_day_id: form.type === 'flight' ? flightArrDay : form.type === 'train' ? trainArrDay : (form.end_day_id ? Number(form.end_day_id) : null),+ day_id: form.type === 'flight' ? flightDepDay : stationRoute ? trainDepDay : (form.start_day_id ? Number(form.start_day_id) : null),+ end_day_id: form.type === 'flight' ? flightArrDay : stationRoute ? trainArrDay : (form.end_day_id ? Number(form.end_day_id) : null),reservation_time: form.type === 'flight'? buildTime(days.find(d => d.id === flightDepDay), firstWp?.depTime || '')- : form.type === 'train'+ : stationRoute? buildTime(days.find(d => d.id === trainDepDay), firstTrainWp?.depTime || ''): buildTime(startDay, form.departure_time),reservation_end_time: form.type === 'flight'? buildTime(days.find(d => d.id === flightArrDay), lastWp?.arrTime || '')- : form.type === 'train'+ : stationRoute// Fall back to the departure day so a same-day train (arrival day left// blank) still gets its date, matching the non-flight `endDay ?? startDay`.? buildTime(days.find(d => d.id === trainArrDay) ?? days.find(d => d.id === trainDepDay), lastTrainWp?.arrTime || '')@@ -716,7 +719,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, selconst isCar = form.type === 'car'const routeNames = (form.type === 'flight'? waypoints.map(w => w.airport?.iata)- : form.type === 'train'+ : stationRoute? trainWaypoints.map(w => w.location?.name): [fromPick.location?.name, ...(isCar ? carStops.map(s => s.location?.name) : []), toPick.location?.name]).filter(Boolean)@@ -847,7 +850,9 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel}const roleLabel = (i: number, count: number) =>- i === 0 ? t('reservations.meta.from') : i === count - 1 ? t('reservations.meta.to') : t('reservations.layover.stop')+ i === 0 ? t(form.type === 'cruise' ? 'reservations.cruise.embark' : 'reservations.meta.from')+ : i === count - 1 ? t(form.type === 'cruise' ? 'reservations.cruise.disembark' : 'reservations.meta.to')+ : t(form.type === 'cruise' ? 'reservations.cruise.port' : 'reservations.layover.stop')// Flight route: ordered airports (origin, stops, destination) on one rail.const flightRoute = () => (@@ -941,7 +946,8 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel{dayField(t('reservations.departureDate'), wp.depDayId, v => updateWp({ depDayId: v }))}{timeField(t('reservations.departureTime'), wp.depTime, v => updateWp({ depTime: v }))}</div>- <div className={writesTrainLegs ? GRID_4 : GRID_3}>+ {/* A cruise's ports carry only their times: number, platform and seat are a train's. */}+ {form.type === 'train' && <div className={writesTrainLegs ? GRID_4 : GRID_3}><EditorField label={t('reservations.meta.trainNumber')}><input type="text" value={wp.train_number} onChange={e => updateWp({ train_number: e.target.value })} placeholder="ICE 123" className={INPUT} /></EditorField>@@ -957,14 +963,14 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, selplaceholder={t('reservations.confirmationPlaceholder')} className={INPUT} /></EditorField>)}- </div>+ </div>}</>)}</div>{!isLast && (<div className="py-2.5"><AddRowButton onClick={() => setTrainWaypoints(prev => [...prev.slice(0, i + 1), emptyStationWaypoint(prev[i]?.depDayId || ''), ...prev.slice(i + 1)])}>- {t('reservations.layover.addStop')}+ {t(form.type === 'cruise' ? 'reservations.cruise.addPort' : 'reservations.layover.addStop')}</AddRowButton></div>)}@@ -1071,7 +1077,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, sel<TravelerPicker tripMembers={tripMembers} selectedIds={travelerIds} onToggle={toggleTraveler} /></DialogSection>- {form.type === 'flight' ? flightRoute() : form.type === 'train' ? trainRoute() : plainRoute()}+ {form.type === 'flight' ? flightRoute() : stationRoute ? trainRoute() : plainRoute()}<EditorField label={t('reservations.confirmationCode')}><BookingCodeInput value={form.confirmation_number} onChange={e => set('confirmation_number', e.target.value)}diff --git a/client/src/components/Planner/bookings/bookingFacts.ts b/client/src/components/Planner/bookings/bookingFacts.tsindex b567a4529..6a414ac31 100644--- a/client/src/components/Planner/bookings/bookingFacts.ts+++ b/client/src/components/Planner/bookings/bookingFacts.ts@@ -1,6 +1,6 @@import type { Day, Reservation, ReservationEndpoint } from '../../../types'import { formatPriceText, formatTime, splitReservationDateTime } from '../../../utils/formatters'-import { getFlightLegs, getTrainLegs } from '../../../utils/flightLegs'+import { getFlightLegs, getTrainLegs, usesStationRoute } from '../../../utils/flightLegs'import { safeExternalHref } from '../../../utils/safeUrl'import { daySpan, parseMeta, type AssignmentLookupEntry } from './bookingsModel'@@ -93,7 +93,7 @@ export function bookingFacts(r: Reservation, c: FactsContext): BookingFacts {if (meta.check_out_time) cells.push({ label: t('reservations.meta.checkOut'), value: formatTime(meta.check_out_time, locale, timeFormat) })// Per-segment codes (#1943), only on a real stopover booking.- const legs = r.type === 'flight' ? getFlightLegs(r) : r.type === 'train' ? getTrainLegs(r) : []+ const legs = r.type === 'flight' ? getFlightLegs(r) : usesStationRoute(r.type) ? getTrainLegs(r) : []const legCodes = legs.length > 1? legs.filter(l => l.confirmation_number).map(l => ({ route: [l.from, l.to].filter(Boolean).join(' → '), code: l.confirmation_number as string })): []diff --git a/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx b/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsxindex 4b5c18c59..0c3fd92ec 100644--- a/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx+++ b/client/src/mobile/screens/trip/sheets/MTransportFormSheet.tsx@@ -4,7 +4,7 @@ import MSheet from '../../../components/MSheet'import { useAddonStore } from '../../../../store/addonStore'import { useTranslation } from '../../../../i18n'import { formatDate, resolveDayId, splitReservationDateTime } from '../../../../utils/formatters'-import { orderedEndpoints, parseReservationMetadata, stripAirportCode } from '../../../../utils/flightLegs'+import { orderedEndpoints, parseReservationMetadata, stripAirportCode, usesStationRoute } from '../../../../utils/flightLegs'import { typeToCostCategory } from '@trek/shared'import CustomSelect from '../../../../components/shared/CustomSelect'import CustomTimePicker from '../../../../components/shared/CustomTimePicker'@@ -159,6 +159,8 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspoconst locationPicks = useMemo(() => toLocationPicks(places), [places])const [form, setForm] = useState({ ...EMPTY })+ // Trains and cruises share the station list (#1807), as on desktop.+ const stationRoute = usesStationRoute(form.type)const [automated, setAutomated] = useState(false)const [fromPick, setFromPick] = useState<EndpointPick>({})const [toPick, setToPick] = useState<EndpointPick>({})@@ -262,7 +264,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTransposetWaypoints(wps)setFromPick({})setToPick({})- } else if (type === 'train') {+ } else if (usesStationRoute(type)) {const orderedEps = orderedEndpoints(src)// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst metaLegs: any[] = Array.isArray(meta.legs) ? meta.legs : []@@ -417,7 +419,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspoconst flightWps = form.type === 'flight' ? waypoints.filter(w => w.airport) : []const firstWp = flightWps[0]const lastWp = flightWps[flightWps.length - 1]- const trainWps = form.type === 'train' ? trainWaypoints : []+ const trainWps = stationRoute ? trainWaypoints : []const trainStations = trainWps.filter(w => w.location)// The day/time anchors have to be the rows that actually become endpoints// (same as the flight path); only a train without a single picked station@@ -461,7 +463,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspo})}if (firstWp?.seat) metadata.seat = firstWp.seat- } else if (form.type === 'train') {+ } else if (stationRoute) {if (firstTrainWp?.train_number) metadata.train_number = firstTrainWp.train_numberif (firstTrainWp?.platform) metadata.platform = firstTrainWp.platformif (firstTrainWp?.seat) metadata.seat = firstTrainWp.seat@@ -512,7 +514,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspoconst time = isLast ? w.arrTime : w.depTimeendpoints.push(endpointFromAirport(w.airport!, role, i, dayDate(dId), time || null))})- } else if (form.type === 'train') {+ } else if (stationRoute) {trainStations.forEach((w, i) => {const isFirst = i === 0const isLast = i === trainStations.length - 1@@ -553,16 +555,16 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspotitle: form.title,type: form.type,status: form.status,- day_id: form.type === 'flight' ? flightDepDay : form.type === 'train' ? trainDepDay : (form.start_day_id ? Number(form.start_day_id) : null),- end_day_id: form.type === 'flight' ? flightArrDay : form.type === 'train' ? trainArrDay : (form.end_day_id ? Number(form.end_day_id) : null),+ day_id: form.type === 'flight' ? flightDepDay : stationRoute ? trainDepDay : (form.start_day_id ? Number(form.start_day_id) : null),+ end_day_id: form.type === 'flight' ? flightArrDay : stationRoute ? trainArrDay : (form.end_day_id ? Number(form.end_day_id) : null),reservation_time: form.type === 'flight'? buildTime(days.find(d => d.id === flightDepDay), firstWp?.depTime || '')- : form.type === 'train'+ : stationRoute? buildTime(days.find(d => d.id === trainDepDay), firstTrainWp?.depTime || ''): buildTime(startDay, form.departure_time),reservation_end_time: form.type === 'flight'? buildTime(days.find(d => d.id === flightArrDay), lastWp?.arrTime || '')- : form.type === 'train'+ : stationRoute? buildTime(days.find(d => d.id === trainArrDay) ?? days.find(d => d.id === trainDepDay), lastTrainWp?.arrTime || ''): buildTime(endDay ?? startDay, form.arrival_time),location: null,@@ -823,7 +825,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspo})}</div></>- ) : form.type === 'train' ? (+ ) : stationRoute ? (<><Eyebrow className="mb-[6px] mt-3 uppercase">{t('reservations.layover.route')}</Eyebrow><div className="flex flex-col gap-[6px]">@@ -831,7 +833,10 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspoconst isFirst = i === 0const isLast = i === trainWaypoints.length - 1const updateWp = (patch: Partial<StationWaypointForm>) => setTrainWaypoints(prev => prev.map((w, j) => (j === i ? { ...w, ...patch } : w)))- const roleLabel = isFirst ? t('reservations.meta.from') : isLast ? t('reservations.meta.to') : t('reservations.layover.stop')+ const cruise = form.type === 'cruise'+ const roleLabel = isFirst ? t(cruise ? 'reservations.cruise.embark' : 'reservations.meta.from')+ : isLast ? t(cruise ? 'reservations.cruise.disembark' : 'reservations.meta.to')+ : t(cruise ? 'reservations.cruise.port' : 'reservations.layover.stop')return (<div key={i} className="flex flex-col gap-[6px]"><div className="rounded-[14px] border border-[color:var(--m-rowbr)] bg-[color:var(--m-ic)] p-[11px]">@@ -870,7 +875,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspo<CustomTimePicker value={wp.depTime} onChange={v => updateWp({ depTime: v })} /></div></div>- <div className="mt-2 flex gap-2">+ {!cruise && <div className="mt-2 flex gap-2"><div className="min-w-0 flex-[1.2]"><Eyebrow className="mb-[5px] uppercase">{t('reservations.meta.trainNumber')}</Eyebrow><input type="text" value={wp.train_number} onChange={e => updateWp({ train_number: e.target.value })} placeholder="ICE 123" className={FIELD_CLS} />@@ -883,8 +888,8 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspo<Eyebrow className="mb-[5px] uppercase">{t('reservations.meta.seat')}</Eyebrow><input type="text" value={wp.seat} onChange={e => updateWp({ seat: e.target.value })} placeholder="42A" className={FIELD_CLS} /></div>- </div>- {writesTrainLegs && (+ </div>}+ {writesTrainLegs && !cruise && (<div className="mt-2"><Eyebrow className="mb-[5px] uppercase">{t('reservations.confirmationCode')}</Eyebrow><BookingCodeInput@@ -904,7 +909,7 @@ export default function MTransportFormSheet({ planner, onOpenExpense }: MTranspoonClick={() => setTrainWaypoints(prev => [...prev.slice(0, i + 1), emptyStationWaypoint(prev[i]?.depDayId || ''), ...prev.slice(i + 1)])}className="flex w-full items-center justify-center gap-[5px] rounded-full border-[1.5px] border-dashed border-[color:var(--m-rowbr)] py-2 font-geist text-[0.6875rem] font-semibold text-m-muted">- <Plus size={12} strokeWidth={2.2} /> {t('reservations.layover.addStop')}+ <Plus size={12} strokeWidth={2.2} /> {t(cruise ? 'reservations.cruise.addPort' : 'reservations.layover.addStop')}</button>)}</div>diff --git a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsxindex e3188702f..26c32ca7e 100644--- a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx+++ b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx@@ -6,7 +6,7 @@ import { useTranslation } from '../../../../i18n'import { useSettingsStore } from '../../../../store/settingsStore'import { RES_ICONS } from '../../../../components/Planner/DayPlanSidebar.constants'import { splitReservationDateTime } from '../../../../utils/formatters'-import { getFlightLegs, getTrainLegs } from '../../../../utils/flightLegs'+import { getFlightLegs, getTrainLegs, usesStationRoute } from '../../../../utils/flightLegs'import { openFile } from '../../../../utils/fileDownload'import { runsOnDay } from '../../../../utils/reservationRoutes'import type { Reservation } from '../../../../types'@@ -99,7 +99,7 @@ export default function MTransportSheet({ planner, shell }: MTripSheetsProps) {// Per-segment booking codes (#1943), only on a real stopover booking: the// single-leg fallback would just echo the booking's own code shown below.- const routeLegs = res.type === 'flight' ? getFlightLegs(res) : res.type === 'train' ? getTrainLegs(res) : []+ const routeLegs = res.type === 'flight' ? getFlightLegs(res) : usesStationRoute(res.type) ? getTrainLegs(res) : []const legCodes = routeLegs.length > 1 ? routeLegs.filter(l => l.confirmation_number) : []const resFiles = (planner.files || []).filter(f =>diff --git a/client/src/pages/sharedTrip/SharedBookingsView.tsx b/client/src/pages/sharedTrip/SharedBookingsView.tsxindex 5912fa34c..af9c12e21 100644--- a/client/src/pages/sharedTrip/SharedBookingsView.tsx+++ b/client/src/pages/sharedTrip/SharedBookingsView.tsx@@ -8,7 +8,7 @@ import { displayTitle } from '../../components/Planner/bookings/bookingsModel'import { useTranslation } from '../../i18n'import { useSettingsStore } from '../../store/settingsStore'import { TRANSPORT_TYPES } from '../../utils/dayMerge'-import { getFlightLegs, getTrainLegs } from '../../utils/flightLegs'+import { getFlightLegs, getTrainLegs, usesStationRoute } from '../../utils/flightLegs'import { EmptySection, SectionTitle } from './SharedChrome'import { SharedBookingDetails } from './SharedBookingDetails'import { legFacts } from './sharedTripModel'@@ -62,7 +62,7 @@ function SharedBookingCard({ r, days, tripCurrency }: { r: Reservation; days: Daconst facts = bookingFacts(r, { t, locale, timeFormat, days, assignmentLookup: {}, tripCurrency, hasLinkedCost: true })const tone = toneOf(r)const platform = t('reservations.meta.platform')- const legs = r.type === 'flight' ? getFlightLegs(r) : r.type === 'train' ? getTrainLegs(r) : []+ const legs = r.type === 'flight' ? getFlightLegs(r) : usesStationRoute(r.type) ? getTrainLegs(r) : []return (<article aria-label={displayTitle(r)} className="flex flex-col overflow-hidden rounded-2xl border border-edge-faint bg-surface-card shadow-sm"><div className="flex items-center gap-2 border-b border-edge-faint px-3 py-2.5" style={{ background: toneTint(tone) }}>diff --git a/client/src/utils/flightLegs.test.ts b/client/src/utils/flightLegs.test.tsindex a9363b6e4..2bda07639 100644--- a/client/src/utils/flightLegs.test.ts+++ b/client/src/utils/flightLegs.test.ts@@ -1,5 +1,5 @@import { describe, it, expect } from 'vitest'-import { getFlightLegs, getTrainLegs, isMultiLegTrain, stripAirportCode } from './flightLegs'+import { getFlightLegs, getTrainLegs, isMultiLegTrain, stripAirportCode, usesStationRoute } from './flightLegs'import type { Reservation } from '../types'function res(partial: Partial<Reservation>): Reservation {@@ -107,3 +107,12 @@ describe('stripAirportCode', () => {expect(stripAirportCode('Munich (muc)')).toBe('Munich (muc)')})})++describe('usesStationRoute (#1807)', () => {+ it('covers trains and cruises, nothing else', () => {+ expect(usesStationRoute('train')).toBe(true)+ expect(usesStationRoute('cruise')).toBe(true)+ expect(usesStationRoute('ferry')).toBe(false)+ expect(usesStationRoute(null)).toBe(false)+ })+})diff --git a/client/src/utils/flightLegs.ts b/client/src/utils/flightLegs.tsindex 2333a243a..82c6101b7 100644--- a/client/src/utils/flightLegs.ts+++ b/client/src/utils/flightLegs.ts@@ -166,8 +166,17 @@ export function legCount(r: Reservation): number {return getFlightLegs(r).length}+/**+ * Types whose route is a row of stations, each with its own arrival and+ * departure: trains, and cruises with their ports of call (#1807). Both use+ * the station form and the legs getTrainLegs reads.+ */+export function usesStationRoute(type: string | null | undefined): boolean {+ return type === 'train' || type === 'cruise'+}+export function isMultiLegTrain(r: Reservation): boolean {- return r.type === 'train' && getTrainLegs(r).length > 1+ return usesStationRoute(r.type) && getTrainLegs(r).length > 1}export function isMultiLegFlight(r: Reservation): boolean {diff --git a/server/src/nest/calendar/calendar.service.ts b/server/src/nest/calendar/calendar.service.tsindex 061e9ff25..b9d489691 100644--- a/server/src/nest/calendar/calendar.service.ts+++ b/server/src/nest/calendar/calendar.service.ts@@ -544,7 +544,7 @@ export class CalendarService {for (const d of days) if (isDate(d.date)) dayDate.set(Number(d.id), d.date);interface LegTimes { from: string | null; to: string | null; label: string | null; confirmation: string | null; dep: { date: string; time: string; zone: string | null }; arr: { date: string; time: string; zone: string | null } | null }const legsOf = (r: any): LegTimes[] | null => {- if (r.type !== 'flight' && r.type !== 'train') return null;+ if (r.type !== 'flight' && r.type !== 'train' && r.type !== 'cruise') return null;const meta = r.metadata ? (typeof r.metadata === 'string' ? JSON.parse(r.metadata) : r.metadata) : {};const legs = Array.isArray(meta.legs) ? meta.legs : [];if (legs.length < 2) return null;diff --git a/server/tests/unit/nest/calendar.service.test.ts b/server/tests/unit/nest/calendar.service.test.tsindex 9d347af83..226611c4b 100644--- a/server/tests/unit/nest/calendar.service.test.ts+++ b/server/tests/unit/nest/calendar.service.test.ts@@ -677,6 +677,26 @@ describe('exportICS', () => {expect(ics).toContain('LOCATION:BER\r\n');});+ it('CAL-1807: a cruise with ports of call is one event per sailing', () => {+ const { user } = createUser(testDb);+ const trip = createTrip(testDb, user.id, { title: 'Baltic' });+ const d1 = createDay(testDb, trip.id, { date: '2025-06-02' });+ const d2 = createDay(testDb, trip.id, { date: '2025-06-03' });+ const cruise = createReservation(testDb, trip.id, { title: 'Baltic cruise', type: 'cruise' });+ testDb.prepare('UPDATE reservations SET reservation_time=?, metadata=? WHERE id=?').run(+ '2025-06-02T17:00',+ JSON.stringify({ legs: [+ { from: 'Kiel', to: 'Tallinn', dep_day_id: d1.id, dep_time: '17:00', arr_day_id: d2.id, arr_time: '09:00' },+ { from: 'Tallinn', to: 'Kiel', dep_day_id: d2.id, dep_time: '18:00', arr_day_id: d2.id, arr_time: '23:00' },+ ] }),+ cruise.id,+ );+ const ics = svc.exportICS(trip.id).ics.replace(/\r\n /g, '');+ expect(ics).toContain('SUMMARY:Baltic cruise: Kiel → Tallinn');+ expect(ics).toContain('SUMMARY:Baltic cruise: Tallinn → Kiel');+ expect(ics).toContain(`UID:trek-res-leg2-${cruise.id}@trek`);+ });+it('CAL-046: a leg without a departure clock keeps the single event', () => {const { user } = createUser(testDb);const trip = createTrip(testDb, user.id, { title: 'Layover' });diff --git a/shared/src/i18n/ar/reservations.ts b/shared/src/i18n/ar/reservations.tsindex ce828eda2..58ce8ef87 100644--- a/shared/src/i18n/ar/reservations.ts+++ b/shared/src/i18n/ar/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'المسار','reservations.layover.stop': 'محطة توقف','reservations.layover.addStop': 'إضافة محطة توقف',+ 'reservations.cruise.embark': 'الصعود',+ 'reservations.cruise.disembark': 'النزول',+ 'reservations.cruise.port': 'ميناء التوقف',+ 'reservations.cruise.addPort': 'إضافة ميناء','reservations.layover.connection': 'رحلة متّصلة','reservations.layover.layover': 'توقف بيني','reservations.needsReview': 'مراجعة',diff --git a/shared/src/i18n/az/reservations.ts b/shared/src/i18n/az/reservations.tsindex 55a0f30d4..9a42a388e 100644--- a/shared/src/i18n/az/reservations.ts+++ b/shared/src/i18n/az/reservations.ts@@ -35,6 +35,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Marşrut','reservations.layover.stop': 'Ara dayanacaq','reservations.layover.addStop': 'Ara dayanacaq əlavə et',+ 'reservations.cruise.embark': 'Gəmiyə minmə',+ 'reservations.cruise.disembark': 'Gəmidən düşmə',+ 'reservations.cruise.port': 'Dayanacaq limanı',+ 'reservations.cruise.addPort': 'Liman əlavə et','reservations.layover.connection': 'Transfer','reservations.layover.layover': 'Tranzit gözləmə',diff --git a/shared/src/i18n/br/reservations.ts b/shared/src/i18n/br/reservations.tsindex 5e6468b8c..5988ece54 100644--- a/shared/src/i18n/br/reservations.ts+++ b/shared/src/i18n/br/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Rota','reservations.layover.stop': 'Parada','reservations.layover.addStop': 'Adicionar parada',+ 'reservations.cruise.embark': 'Embarque',+ 'reservations.cruise.disembark': 'Desembarque',+ 'reservations.cruise.port': 'Porto de escala',+ 'reservations.cruise.addPort': 'Adicionar porto','reservations.layover.connection': 'Conexão','reservations.layover.layover': 'Escala','reservations.needsReview': 'Verificar',diff --git a/shared/src/i18n/ca/reservations.ts b/shared/src/i18n/ca/reservations.tsindex 99f34fa17..a3b66b73c 100644--- a/shared/src/i18n/ca/reservations.ts+++ b/shared/src/i18n/ca/reservations.ts@@ -108,6 +108,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Ruta','reservations.layover.stop': 'Escala','reservations.layover.addStop': 'Afegeix una escala',+ 'reservations.cruise.embark': 'Embarcament',+ 'reservations.cruise.disembark': 'Desembarcament',+ 'reservations.cruise.port': "Port d'escala",+ 'reservations.cruise.addPort': 'Afegeix un port','reservations.layover.connection': 'Connexió','reservations.layover.layover': 'Escala','reservations.needsReview': 'Revisa',diff --git a/shared/src/i18n/cs/reservations.ts b/shared/src/i18n/cs/reservations.tsindex 4f3d7d990..b1231a945 100644--- a/shared/src/i18n/cs/reservations.ts+++ b/shared/src/i18n/cs/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Trasa','reservations.layover.stop': 'Zastávka','reservations.layover.addStop': 'Přidat zastávku',+ 'reservations.cruise.embark': 'Nalodění',+ 'reservations.cruise.disembark': 'Vylodění',+ 'reservations.cruise.port': 'Přístav',+ 'reservations.cruise.addPort': 'Přidat přístav','reservations.layover.connection': 'Přípoj','reservations.layover.layover': 'Mezipřistání','reservations.needsReview': 'Zkontrolovat',diff --git a/shared/src/i18n/de/reservations.ts b/shared/src/i18n/de/reservations.tsindex 422b68a25..46774abf6 100644--- a/shared/src/i18n/de/reservations.ts+++ b/shared/src/i18n/de/reservations.ts@@ -31,6 +31,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Route','reservations.layover.stop': 'Zwischenstopp','reservations.layover.addStop': 'Zwischenstopp hinzufügen',+ 'reservations.cruise.embark': 'Einschiffung',+ 'reservations.cruise.disembark': 'Ausschiffung',+ 'reservations.cruise.port': 'Anlaufhafen',+ 'reservations.cruise.addPort': 'Hafen hinzufügen','reservations.layover.connection': 'Anschlussflug','reservations.layover.layover': 'Zwischenstopp','reservations.needsReview': 'Prüfen',diff --git a/shared/src/i18n/en/reservations.ts b/shared/src/i18n/en/reservations.tsindex 2a9e47a87..2054d864d 100644--- a/shared/src/i18n/en/reservations.ts+++ b/shared/src/i18n/en/reservations.ts@@ -30,6 +30,10 @@ const reservations: TranslationStrings = {'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',diff --git a/shared/src/i18n/es/reservations.ts b/shared/src/i18n/es/reservations.tsindex ba967986a..fb31251b7 100644--- a/shared/src/i18n/es/reservations.ts+++ b/shared/src/i18n/es/reservations.ts@@ -108,6 +108,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Ruta','reservations.layover.stop': 'Escala','reservations.layover.addStop': 'Añadir escala',+ 'reservations.cruise.embark': 'Embarque',+ 'reservations.cruise.disembark': 'Desembarque',+ 'reservations.cruise.port': 'Puerto de escala',+ 'reservations.cruise.addPort': 'Añadir puerto','reservations.layover.connection': 'Conexión','reservations.layover.layover': 'Escala','reservations.needsReview': 'Revisar',diff --git a/shared/src/i18n/et/reservations.ts b/shared/src/i18n/et/reservations.tsindex 980357662..0e58760bb 100644--- a/shared/src/i18n/et/reservations.ts+++ b/shared/src/i18n/et/reservations.ts@@ -30,6 +30,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Marsruut','reservations.layover.stop': 'Peatus','reservations.layover.addStop': 'Lisa peatus',+ 'reservations.cruise.embark': 'Pardaleminek',+ 'reservations.cruise.disembark': 'Laevalt lahkumine',+ 'reservations.cruise.port': 'Peatussadam',+ 'reservations.cruise.addPort': 'Lisa sadam','reservations.layover.connection': 'Ühendus','reservations.layover.layover': 'Vahepeatus','reservations.needsReview': 'Vaata üle',diff --git a/shared/src/i18n/fr/reservations.ts b/shared/src/i18n/fr/reservations.tsindex bd542afc4..c58d38b42 100644--- a/shared/src/i18n/fr/reservations.ts+++ b/shared/src/i18n/fr/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Itinéraire','reservations.layover.stop': 'Escale','reservations.layover.addStop': 'Ajouter une escale',+ 'reservations.cruise.embark': 'Embarquement',+ 'reservations.cruise.disembark': 'Débarquement',+ 'reservations.cruise.port': 'Escale',+ 'reservations.cruise.addPort': 'Ajouter une escale','reservations.layover.connection': 'Correspondance','reservations.layover.layover': 'Escale','reservations.needsReview': 'Vérifier',diff --git a/shared/src/i18n/gr/reservations.ts b/shared/src/i18n/gr/reservations.tsindex d84d60545..972b5488d 100644--- a/shared/src/i18n/gr/reservations.ts+++ b/shared/src/i18n/gr/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Διαδρομή','reservations.layover.stop': 'Στάση','reservations.layover.addStop': 'Προσθήκη στάσης',+ 'reservations.cruise.embark': 'Επιβίβαση',+ 'reservations.cruise.disembark': 'Αποβίβαση',+ 'reservations.cruise.port': 'Λιμάνι στάσης',+ 'reservations.cruise.addPort': 'Προσθήκη λιμανιού','reservations.layover.connection': 'Ανταπόκριση','reservations.layover.layover': 'Ενδιάμεση στάση','reservations.needsReview': 'Έλεγχος',diff --git a/shared/src/i18n/hu/reservations.ts b/shared/src/i18n/hu/reservations.tsindex 87ef66be9..472847725 100644--- a/shared/src/i18n/hu/reservations.ts+++ b/shared/src/i18n/hu/reservations.ts@@ -30,6 +30,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Útvonal','reservations.layover.stop': 'Megálló','reservations.layover.addStop': 'Megálló hozzáadása',+ 'reservations.cruise.embark': 'Behajózás',+ 'reservations.cruise.disembark': 'Kihajózás',+ 'reservations.cruise.port': 'Kikötő',+ 'reservations.cruise.addPort': 'Kikötő hozzáadása','reservations.layover.connection': 'Csatlakozás','reservations.layover.layover': 'Átszállás','reservations.needsReview': 'Ellenőrzés',diff --git a/shared/src/i18n/id/reservations.ts b/shared/src/i18n/id/reservations.tsindex 5f0b677e9..a4e92983c 100644--- a/shared/src/i18n/id/reservations.ts+++ b/shared/src/i18n/id/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Rute','reservations.layover.stop': 'Persinggahan','reservations.layover.addStop': 'Tambah persinggahan',+ 'reservations.cruise.embark': 'Naik kapal',+ 'reservations.cruise.disembark': 'Turun kapal',+ 'reservations.cruise.port': 'Pelabuhan singgah',+ 'reservations.cruise.addPort': 'Tambah pelabuhan','reservations.layover.connection': 'Sambungan','reservations.layover.layover': 'Transit','reservations.needsReview': 'Tinjau',diff --git a/shared/src/i18n/it/reservations.ts b/shared/src/i18n/it/reservations.tsindex 053033615..b216c872e 100644--- a/shared/src/i18n/it/reservations.ts+++ b/shared/src/i18n/it/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Itinerario','reservations.layover.stop': 'Scalo','reservations.layover.addStop': 'Aggiungi scalo',+ 'reservations.cruise.embark': 'Imbarco',+ 'reservations.cruise.disembark': 'Sbarco',+ 'reservations.cruise.port': 'Porto di scalo',+ 'reservations.cruise.addPort': 'Aggiungi porto','reservations.layover.connection': 'Coincidenza','reservations.layover.layover': 'Sosta','reservations.needsReview': 'Verifica',diff --git a/shared/src/i18n/ja/reservations.ts b/shared/src/i18n/ja/reservations.tsindex 3126bbea3..d98f07e0b 100644--- a/shared/src/i18n/ja/reservations.ts+++ b/shared/src/i18n/ja/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': '経路','reservations.layover.stop': '経由地','reservations.layover.addStop': '経由地を追加',+ 'reservations.cruise.embark': '乗船',+ 'reservations.cruise.disembark': '下船',+ 'reservations.cruise.port': '寄港地',+ 'reservations.cruise.addPort': '寄港地を追加','reservations.layover.connection': '乗り継ぎ便','reservations.layover.layover': '乗り継ぎ','reservations.needsReview': '要確認',diff --git a/shared/src/i18n/ko/reservations.ts b/shared/src/i18n/ko/reservations.tsindex fc746f5f5..f83d4ef9b 100644--- a/shared/src/i18n/ko/reservations.ts+++ b/shared/src/i18n/ko/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': '경로','reservations.layover.stop': '경유','reservations.layover.addStop': '경유지 추가',+ 'reservations.cruise.embark': '승선',+ 'reservations.cruise.disembark': '하선',+ 'reservations.cruise.port': '기항지',+ 'reservations.cruise.addPort': '기항지 추가','reservations.layover.connection': '연결편','reservations.layover.layover': '경유 대기','reservations.needsReview': '검토 필요',diff --git a/shared/src/i18n/nl/reservations.ts b/shared/src/i18n/nl/reservations.tsindex c415349d6..e47af8300 100644--- a/shared/src/i18n/nl/reservations.ts+++ b/shared/src/i18n/nl/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Route','reservations.layover.stop': 'Tussenstop','reservations.layover.addStop': 'Tussenstop toevoegen',+ 'reservations.cruise.embark': 'Inscheping',+ 'reservations.cruise.disembark': 'Ontscheping',+ 'reservations.cruise.port': 'Aanloophaven',+ 'reservations.cruise.addPort': 'Haven toevoegen','reservations.layover.connection': 'Aansluiting','reservations.layover.layover': 'Overstap','reservations.needsReview': 'Controleren',diff --git a/shared/src/i18n/pl/reservations.ts b/shared/src/i18n/pl/reservations.tsindex a7c4c1cac..df1bc8b7b 100644--- a/shared/src/i18n/pl/reservations.ts+++ b/shared/src/i18n/pl/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Trasa','reservations.layover.stop': 'Przystanek','reservations.layover.addStop': 'Dodaj przystanek',+ 'reservations.cruise.embark': 'Zaokrętowanie',+ 'reservations.cruise.disembark': 'Wyokrętowanie',+ 'reservations.cruise.port': 'Port postoju',+ 'reservations.cruise.addPort': 'Dodaj port','reservations.layover.connection': 'Połączenie','reservations.layover.layover': 'Przesiadka','reservations.meta.trainNumber': 'Numer pociągu',diff --git a/shared/src/i18n/ru/reservations.ts b/shared/src/i18n/ru/reservations.tsindex 86a1a5926..40a989b08 100644--- a/shared/src/i18n/ru/reservations.ts+++ b/shared/src/i18n/ru/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Маршрут','reservations.layover.stop': 'Остановка','reservations.layover.addStop': 'Добавить остановку',+ 'reservations.cruise.embark': 'Посадка',+ 'reservations.cruise.disembark': 'Высадка',+ 'reservations.cruise.port': 'Порт захода',+ 'reservations.cruise.addPort': 'Добавить порт','reservations.layover.connection': 'Стыковка','reservations.layover.layover': 'Пересадка','reservations.needsReview': 'Проверить',diff --git a/shared/src/i18n/sk/reservations.ts b/shared/src/i18n/sk/reservations.tsindex f5539815a..7a66089f4 100644--- a/shared/src/i18n/sk/reservations.ts+++ b/shared/src/i18n/sk/reservations.ts@@ -31,6 +31,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Trasa','reservations.layover.stop': 'Zastávka','reservations.layover.addStop': 'Pridať zastávku',+ 'reservations.cruise.embark': 'Nalodenie',+ 'reservations.cruise.disembark': 'Vylodenie',+ 'reservations.cruise.port': 'Prístav',+ 'reservations.cruise.addPort': 'Pridať prístav','reservations.layover.connection': 'Prípoj','reservations.layover.layover': 'Medzipristátie','reservations.needsReview': 'Skontrolovať',diff --git a/shared/src/i18n/sv/reservations.ts b/shared/src/i18n/sv/reservations.tsindex 927286019..2eb1cb774 100644--- a/shared/src/i18n/sv/reservations.ts+++ b/shared/src/i18n/sv/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Rutt','reservations.layover.stop': 'Stopp','reservations.layover.addStop': 'Lägg till stopp',+ 'reservations.cruise.embark': 'Påstigning',+ 'reservations.cruise.disembark': 'Avstigning',+ 'reservations.cruise.port': 'Anlöpningshamn',+ 'reservations.cruise.addPort': 'Lägg till hamn','reservations.layover.connection': 'Anslutning','reservations.layover.layover': 'Mellanlandning','reservations.needsReview': 'Granska',diff --git a/shared/src/i18n/th/reservations.ts b/shared/src/i18n/th/reservations.tsindex 3c6a50c1d..0cdf6c61b 100644--- a/shared/src/i18n/th/reservations.ts+++ b/shared/src/i18n/th/reservations.ts@@ -30,6 +30,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'เส้นทาง','reservations.layover.stop': 'จุดแวะพัก','reservations.layover.addStop': 'เพิ่มจุดแวะ',+ 'reservations.cruise.embark': 'ขึ้นเรือ',+ 'reservations.cruise.disembark': 'ลงเรือ',+ 'reservations.cruise.port': 'ท่าเรือแวะพัก',+ 'reservations.cruise.addPort': 'เพิ่มท่าเรือ','reservations.layover.connection': 'การเชื่อมต่อ','reservations.layover.layover': 'แวะพัก','reservations.needsReview': 'ตรวจสอบ',diff --git a/shared/src/i18n/tr/reservations.ts b/shared/src/i18n/tr/reservations.tsindex c8e7e4376..45561187e 100644--- a/shared/src/i18n/tr/reservations.ts+++ b/shared/src/i18n/tr/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Rota','reservations.layover.stop': 'Durak','reservations.layover.addStop': 'Durak ekle',+ 'reservations.cruise.embark': 'Biniş',+ 'reservations.cruise.disembark': 'İniş',+ 'reservations.cruise.port': 'Uğrak limanı',+ 'reservations.cruise.addPort': 'Liman ekle','reservations.layover.connection': 'Aktarma','reservations.layover.layover': 'Aktarma bekleme süresi','reservations.needsReview': 'Gözden geçirmek',diff --git a/shared/src/i18n/uk/reservations.ts b/shared/src/i18n/uk/reservations.tsindex 32ca1060b..fc7000114 100644--- a/shared/src/i18n/uk/reservations.ts+++ b/shared/src/i18n/uk/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Маршрут','reservations.layover.stop': 'Зупинка','reservations.layover.addStop': 'Додати зупинку',+ 'reservations.cruise.embark': 'Посадка',+ 'reservations.cruise.disembark': 'Висадка',+ 'reservations.cruise.port': 'Порт заходу',+ 'reservations.cruise.addPort': 'Додати порт','reservations.layover.connection': 'Пересадка','reservations.layover.layover': 'Очікування','reservations.needsReview': 'Перевірити',diff --git a/shared/src/i18n/vi/reservations.ts b/shared/src/i18n/vi/reservations.tsindex 4abf389b0..afc2567b9 100644--- a/shared/src/i18n/vi/reservations.ts+++ b/shared/src/i18n/vi/reservations.ts@@ -29,6 +29,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': 'Tuyến đường','reservations.layover.stop': 'Dừng lại','reservations.layover.addStop': 'Thêm điểm dừng',+ 'reservations.cruise.embark': 'Lên tàu',+ 'reservations.cruise.disembark': 'Rời tàu',+ 'reservations.cruise.port': 'Cảng ghé',+ 'reservations.cruise.addPort': 'Thêm cảng','reservations.layover.connection': 'Sự liên quan','reservations.layover.layover': 'quá cảnh','reservations.needsReview': 'Ôn tập',diff --git a/shared/src/i18n/zh-TW/reservations.ts b/shared/src/i18n/zh-TW/reservations.tsindex ba167ef8d..29ad85780 100644--- a/shared/src/i18n/zh-TW/reservations.ts+++ b/shared/src/i18n/zh-TW/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': '航線','reservations.layover.stop': '中轉站','reservations.layover.addStop': '新增中轉站',+ 'reservations.cruise.embark': '登船',+ 'reservations.cruise.disembark': '下船',+ 'reservations.cruise.port': '停靠港',+ 'reservations.cruise.addPort': '新增港口','reservations.layover.connection': '轉乘航班','reservations.layover.layover': '轉機等候','reservations.needsReview': '待確認',diff --git a/shared/src/i18n/zh/reservations.ts b/shared/src/i18n/zh/reservations.tsindex 0e1ff500b..851b75997 100644--- a/shared/src/i18n/zh/reservations.ts+++ b/shared/src/i18n/zh/reservations.ts@@ -28,6 +28,10 @@ const reservations: TranslationStrings = {'reservations.layover.route': '航线','reservations.layover.stop': '经停','reservations.layover.addStop': '添加经停',+ 'reservations.cruise.embark': '登船',+ 'reservations.cruise.disembark': '下船',+ 'reservations.cruise.port': '停靠港',+ 'reservations.cruise.addPort': '添加港口','reservations.layover.connection': '转机','reservations.layover.layover': '中转停留','reservations.needsReview': '待确认',