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
fix(bookings): the delete question for a booking with a linked expense says the expense is deleted too
Mauriced4f4ab3891c4
diff --git a/client/src/components/Planner/TransitJourneyModal.tsx b/client/src/components/Planner/TransitJourneyModal.tsxindex 1fb655dbe..e39bac3fd 100644--- a/client/src/components/Planner/TransitJourneyModal.tsx+++ b/client/src/components/Planner/TransitJourneyModal.tsx@@ -10,8 +10,10 @@ import { Segmented, TEXTAREA } from '../shared/dialogParts'import { Tooltip } from '../shared/Tooltip'import { BookingDialogHeader, TypePill } from './bookings/BookingDialogShell'import { TransitLegs } from './bookings/transitParts'+import { deleteBodyKey } from './bookings/bookingsModel'import { useTranslation } from '../../i18n'import { useSettingsStore } from '../../store/settingsStore'+import { useTripStore } from '../../store/tripStore'import { splitReservationDateTime, formatTime } from '../../utils/formatters'import { TransitTitle, TransitMetaBadges, TransitWalkDivider, fmtTransitDuration } from './transitDisplay'import type { Reservation } from '../../types'@@ -55,6 +57,7 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDeconst { t, locale } = useTranslation()const isMobile = useIsPhone()const timeFormat = useSettingsStore(st => st.settings.time_format) || '24h'+ const budgetItems = useTripStore(st => st.budgetItems)const res = reservationconst meta = typeof res.metadata === 'string' ? (() => { try { return JSON.parse(res.metadata || '{}') } catch { return {} } })() : (res.metadata || {})const transit = meta.transit && Array.isArray(meta.transit.legs) ? meta.transit : null@@ -252,7 +255,7 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDeonClose={() => setConfirmDelete(false)}onConfirm={async () => { setConfirmDelete(false); await onDelete(); onClose() }}title={t('reservations.confirm.deleteTitle')}- message={t('reservations.confirm.deleteBody', { name: res.title })}+ message={t(deleteBodyKey(res.id, budgetItems), { name: res.title })}/></>)@@ -530,7 +533,7 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDeonClose={() => setConfirmDelete(false)}onConfirm={async () => { setConfirmDelete(false); await onDelete(); onClose() }}title={t('reservations.confirm.deleteTitle')}- message={t('reservations.confirm.deleteBody', { name: res.title })}+ message={t(deleteBodyKey(res.id, budgetItems), { name: res.title })}/></Modal>)diff --git a/client/src/components/Planner/TransportModal.tsx b/client/src/components/Planner/TransportModal.tsxindex 16c12efc9..9771b8366 100644--- a/client/src/components/Planner/TransportModal.tsx+++ b/client/src/components/Planner/TransportModal.tsx@@ -24,7 +24,7 @@ import { BookingDialogHeader, StatusPill } from './bookings/BookingDialogShell'import { DialogShell, DialogSection, DialogFooter, FooterSpacer, DialogButton, DeleteButton } from '../shared/DialogShell'import { INPUT, READONLY_BOX, GRID_2, GRID_3, PANEL, SEARCH_ON_PANEL, EditorField, Segmented, PillSelect, AddRowButton } from '../shared/dialogParts'import { fs, Eyebrow, type StatusTone } from './bookings/bookingParts'-import { typeInfo } from './bookings/bookingsModel'+import { deleteBodyKey, typeInfo } from './bookings/bookingsModel'import {EMPTY_TRANSPORT_FIELDS, TRANSPORT_TYPE_OPTIONS as TYPE_OPTIONS, emptyCarStop, emptyStationWaypoint, emptyWaypoint,transportDayOptions, type StationWaypointForm, type WaypointForm,@@ -565,7 +565,7 @@ export function TransportModal({ isOpen, onClose, onSave, reservation, days, selisOpen={showDeleteConfirm}onClose={() => setShowDeleteConfirm(false)}title={t('reservations.confirm.deleteTitle')}- message={t('reservations.confirm.deleteBody', { name: reservation?.title ?? '' })}+ message={t(deleteBodyKey(reservation?.id, budgetItems), { name: reservation?.title ?? '' })}confirmLabel={t('common.delete')}cancelLabel={t('common.cancel')}onConfirm={async () => {diff --git a/client/src/components/Planner/bookings/BookingDetailHost.test.tsx b/client/src/components/Planner/bookings/BookingDetailHost.test.tsxindex 61d365c9b..9f47ad8a5 100644--- a/client/src/components/Planner/bookings/BookingDetailHost.test.tsx+++ b/client/src/components/Planner/bookings/BookingDetailHost.test.tsx@@ -1,4 +1,4 @@-// FE-PLANNER-BOOKINGHOST-001 to FE-PLANNER-BOOKINGHOST-017+// FE-PLANNER-BOOKINGHOST-001 to FE-PLANNER-BOOKINGHOST-018import { render, screen, fireEvent, waitFor, within } from '../../../../tests/helpers/render';import userEvent from '@testing-library/user-event';import { http, HttpResponse } from 'msw';@@ -111,6 +111,15 @@ describe('BookingDetailHost', () => {expect(calls).toEqual(['close', 'delete']);});+ it('FE-PLANNER-BOOKINGHOST-018: the delete question says a linked expense goes with the booking (#2604)', async () => {+ const r = buildReservation({ title: 'Dinner' });+ useTripStore.setState({ budgetItems: [buildBudgetItem({ name: 'Dinner bill', reservation_id: r.id } as never)] });+ renderHost(r, { onDelete: vi.fn() });++ await userEvent.click(screen.getByRole('button', { name: 'Delete' }));+ expect(screen.getByText('"Dinner" will be permanently deleted, along with its linked costs.')).toBeInTheDocument();+ });+it('FE-PLANNER-BOOKINGHOST-007: a failed delete says so', async () => {renderHost(buildReservation({ title: 'Dinner' }), { onDelete: vi.fn(async () => { throw new Error('nope'); }) });diff --git a/client/src/components/Planner/bookings/bookingsModel.test.ts b/client/src/components/Planner/bookings/bookingsModel.test.tsindex 6f1fe220e..7687e5f5e 100644--- a/client/src/components/Planner/bookings/bookingsModel.test.ts+++ b/client/src/components/Planner/bookings/bookingsModel.test.ts@@ -1,4 +1,4 @@-// FE-PLANNER-BKMODEL-001 to FE-PLANNER-BKMODEL-043+// FE-PLANNER-BKMODEL-001 to FE-PLANNER-BKMODEL-044import { describe, it, expect } from 'vitest';import { Plane, TramFront, FileText, Hotel } from 'lucide-react';import { buildAssignment, buildDay, buildPlace, buildReservation } from '../../../../tests/helpers/factories';@@ -10,6 +10,7 @@ import {applyFilters,buildAssignmentLookup,costsFor,+ deleteBodyKey,daySpan,displayTitle,groupReservations,@@ -337,6 +338,13 @@ describe('costsFor', () => {expect(costsFor(3, [{ reservation_id: 3, total_price: 4 }], '')).toEqual([{ currency: 'EUR', amount: 4 }]);expect(costsFor(4, [{ reservation_id: 3, total_price: 4 }], 'EUR')).toEqual([]);});++ it('FE-PLANNER-BKMODEL-044: the delete question names the linked expense only when there is one (#2604)', () => {+ const items = [{ reservation_id: 3 }, { reservation_id: null }];+ expect(deleteBodyKey(3, items)).toBe('reservations.confirm.deleteBodyWithExpense');+ expect(deleteBodyKey(4, items)).toBe('reservations.confirm.deleteBody');+ expect(deleteBodyKey(undefined, items)).toBe('reservations.confirm.deleteBody');+ });});describe('displayTitle', () => {diff --git a/client/src/components/Planner/bookings/bookingsModel.ts b/client/src/components/Planner/bookings/bookingsModel.tsindex 659b319fc..17d8bf709 100644--- a/client/src/components/Planner/bookings/bookingsModel.ts+++ b/client/src/components/Planner/bookings/bookingsModel.ts@@ -317,6 +317,16 @@ export function costsFor(reservationId: number, items: { reservation_id?: numberreturn [...sums.entries()].map(([currency, amount]) => ({ currency, amount }))}+/**+ * The delete question's text. The server deletes a booking's linked expenses with it,+ * so a booking that has one says so instead of only naming the booking (#2604).+ */+export function deleteBodyKey(reservationId: number | undefined, items: { reservation_id?: number | null }[]): string {+ return reservationId != null && items.some(it => it.reservation_id === reservationId)+ ? 'reservations.confirm.deleteBodyWithExpense'+ : 'reservations.confirm.deleteBody'+}+/** A title for an entry saved without one: its route, else its place, else nothing. */export function displayTitle(r: Reservation): string {if (r.title?.trim()) return r.titlediff --git a/client/src/components/Planner/bookings/useBookingActions.tsx b/client/src/components/Planner/bookings/useBookingActions.tsxindex 2e8a0c88d..ee3a232d2 100644--- a/client/src/components/Planner/bookings/useBookingActions.tsx+++ b/client/src/components/Planner/bookings/useBookingActions.tsx@@ -4,6 +4,7 @@ import { useTripStore } from '../../../store/tripStore'import { useToast } from '../../shared/Toast'import ConfirmDialog from '../../shared/ConfirmDialog'import { useReservationDelete } from './useReservationDelete'+import { deleteBodyKey } from './bookingsModel'/*** The two things a booking can have done to it without its editor: switching@@ -17,6 +18,7 @@ export function useBookingActions(tripId: number, onDelete: (id: number) => unknconst { t } = useTranslation()const toast = useToast()const toggleReservationStatus = useTripStore(s => s.toggleReservationStatus)+ const budgetItems = useTripStore(s => s.budgetItems)const { pendingDelete, requestDelete, cancelDelete, confirmDelete } =useReservationDelete(onDelete, () => toast.error(t('reservations.toast.deleteError')), beforeDelete)@@ -30,7 +32,7 @@ export function useBookingActions(tripId: number, onDelete: (id: number) => unknonClose={cancelDelete}onConfirm={confirmDelete}title={t('reservations.confirm.deleteTitle')}- message={t('reservations.confirm.deleteBody', { name: pendingDelete?.title ?? '' })}+ message={t(deleteBodyKey(pendingDelete?.id, budgetItems), { name: pendingDelete?.title ?? '' })}confirmLabel={t('common.delete')}cancelLabel={t('common.cancel')}/>diff --git a/client/src/components/Planner/bookings/useReservationCard.test.ts b/client/src/components/Planner/bookings/useReservationCard.test.tsindex b679e813e..6f3029bc1 100644--- a/client/src/components/Planner/bookings/useReservationCard.test.ts+++ b/client/src/components/Planner/bookings/useReservationCard.test.ts@@ -1,10 +1,12 @@-// FE-PLANNER-RESLISTFILTER-005 to -008: what one card of the phone's bookings+// FE-PLANNER-RESLISTFILTER-005 to -009: what one card of the phone's bookings// and transports tabs does.import { act, renderHook } from '@testing-library/react';import type { KeyboardEvent, MouseEvent } from 'react';import { beforeEach, describe, expect, it, vi } from 'vitest';-import { buildReservation } from '../../../../tests/helpers/factories';+import { buildBudgetItem, buildReservation } from '../../../../tests/helpers/factories';+import { resetAllStores, seedStore } from '../../../../tests/helpers/store';+import { useTripStore } from '../../../store/tripStore';import type { Reservation } from '../../../types';import { openFile } from '../../../utils/fileDownload';import { useReservationCard } from './useReservationCard';@@ -88,4 +90,11 @@ describe('useReservationCard', () => {expect(openFile).toHaveBeenCalledTimes(3);expect(openFile).toHaveBeenCalledWith('/uploads/f/1', 'voucher.pdf');});++ it('FE-PLANNER-RESLISTFILTER-009: the card knows whether deleting it takes a linked expense along (#2604)', () => {+ resetAllStores();+ seedStore(useTripStore, { budgetItems: [buildBudgetItem({ id: 1, reservation_id: 10 } as never)] });+ expect(renderHook(() => useReservationCard(ann, host())).result.current.deleteTakesExpense).toBe(true);+ expect(renderHook(() => useReservationCard(bob, host())).result.current.deleteTakesExpense).toBe(false);+ });});diff --git a/client/src/components/Planner/bookings/useReservationCard.ts b/client/src/components/Planner/bookings/useReservationCard.tsindex d9cd7ea6d..f432a2133 100644--- a/client/src/components/Planner/bookings/useReservationCard.ts+++ b/client/src/components/Planner/bookings/useReservationCard.ts@@ -1,6 +1,8 @@import { useState, type KeyboardEvent, type MouseEvent } from 'react';+import { useTripStore } from '../../../store/tripStore';import type { Reservation } from '../../../types';+import { deleteBodyKey } from './bookingsModel';import { openAttachment } from './openAttachment';import { useReservationDelete } from './useReservationDelete';@@ -19,7 +21,8 @@ export interface ReservationCardHost {* behind a question with a toast when it fails, and its attached files, which* open from a chip inside the card's own button (so a click or Enter/Space on* the chip stops there). A file that cannot be opened stays silent here; the- * desktop panel toasts it.+ * desktop panel toasts it. The delete question names a linked expense, which+ * goes with the booking.*/export function useReservationCard(res: Reservation, host: ReservationCardHost) {const blurCodes = host.settings.blur_booking_codes;@@ -28,11 +31,15 @@ export function useReservationCard(res: Reservation, host: ReservationCardHost)() => host.toast.error(host.t('reservations.toast.deleteError')));const [codeRevealed, setCodeRevealed] = useState(false);+ const deleteTakesExpense = useTripStore(+ (s) => deleteBodyKey(res.id, s.budgetItems) === 'reservations.confirm.deleteBodyWithExpense'+ );return {codeBlurred: !!blurCodes && !codeRevealed,toggleCode: blurCodes ? () => setCodeRevealed((v) => !v) : undefined,confirmingDelete: pendingDelete != null,+ deleteTakesExpense,askDelete: () => requestDelete(res),cancelDelete,confirmDelete: () => {diff --git a/client/src/mobile/screens/trip/tabs/MReservationCardParts.test.tsx b/client/src/mobile/screens/trip/tabs/MReservationCardParts.test.tsxindex 69c2fca21..e3ff774c3 100644--- a/client/src/mobile/screens/trip/tabs/MReservationCardParts.test.tsx+++ b/client/src/mobile/screens/trip/tabs/MReservationCardParts.test.tsx@@ -1,4 +1,4 @@-// FE-COMP-MRESCARD-001 to FE-COMP-MRESCARD-008+// FE-COMP-MRESCARD-001 to FE-COMP-MRESCARD-009import { fireEvent, render, screen } from '@testing-library/react';import { Hotel, Plane } from 'lucide-react';import { describe, expect, it, vi } from 'vitest';@@ -120,6 +120,12 @@ describe('MReservationCardParts', () => {expect(card.confirmDelete).toHaveBeenCalledOnce();});+ it('FE-COMP-MRESCARD-009: a booking with a linked expense says the expense is deleted with it (#2604)', () => {+ render(<CardDeleteSheet title="LH 400" card={cardState({ confirmingDelete: true, deleteTakesExpense: true })} t={t} />);++ expect(screen.getByText('reservations.confirm.deleteBodyWithExpense:LH 400')).toBeInTheDocument();+ });+it('FE-COMP-MRESCARD-008: the date sits beside the day title and never shrinks, a range stacks the time under it (#2590)', () => {const { container } = render(<CardWhenAndCodediff --git a/client/src/mobile/screens/trip/tabs/MReservationCardParts.tsx b/client/src/mobile/screens/trip/tabs/MReservationCardParts.tsxindex 73c0068ca..026669198 100644--- a/client/src/mobile/screens/trip/tabs/MReservationCardParts.tsx+++ b/client/src/mobile/screens/trip/tabs/MReservationCardParts.tsx@@ -161,7 +161,7 @@ export function CardDeleteSheet({ title, card, t }: { title: string; card: CardSopen={card.confirmingDelete}onClose={card.cancelDelete}title={t('reservations.confirm.deleteTitle')}- message={t('reservations.confirm.deleteBody', { name: title })}+ message={t(card.deleteTakesExpense ? 'reservations.confirm.deleteBodyWithExpense' : 'reservations.confirm.deleteBody', { name: title })}confirmLabel={t('common.delete')}cancelLabel={t('common.cancel')}dangerdiff --git a/server/src/nest/reservations/reservations.mcp.ts b/server/src/nest/reservations/reservations.mcp.tsindex 71ffbabc4..3a3f60861 100644--- a/server/src/nest/reservations/reservations.mcp.ts+++ b/server/src/nest/reservations/reservations.mcp.ts@@ -460,7 +460,7 @@ export class ReservationsMcp {@Tool({name: 'delete_reservation',- description: 'Delete a reservation from a trip.',+ description: 'Delete a reservation from a trip. Expenses linked to it are deleted with it, and so is the stay a hotel booking created.',inputSchema: {tripId: idSchema,reservationId: idSchema,diff --git a/shared/src/i18n/ar/reservations.ts b/shared/src/i18n/ar/reservations.tsindex 2467e248b..1c13f0930 100644--- a/shared/src/i18n/ar/reservations.ts+++ b/shared/src/i18n/ar/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'هل تريد حذف الحجز "{name}"؟','reservations.confirm.deleteTitle': 'حذف الحجز؟','reservations.confirm.deleteBody': 'سيتم حذف "{name}" نهائيًا.',+ 'reservations.confirm.deleteBodyWithExpense': 'سيتم حذف "{name}" نهائيًا، مع التكاليف المرتبطة به.','reservations.toast.updated': 'تم تحديث الحجز','reservations.toast.removed': 'تم حذف الحجز','reservations.toast.fileUploaded': 'تم رفع الملف',diff --git a/shared/src/i18n/az/reservations.ts b/shared/src/i18n/az/reservations.tsindex f987698d4..db2de1c0b 100644--- a/shared/src/i18n/az/reservations.ts+++ b/shared/src/i18n/az/reservations.ts@@ -87,6 +87,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '“{name}” rezervasiyasını silmək istədiyinizə əminsiniz?','reservations.confirm.deleteTitle': 'Rezervasiya silinsin?','reservations.confirm.deleteBody': '“{name}” həmişəlik silinəcək.',+ 'reservations.confirm.deleteBodyWithExpense': '“{name}” və ona bağlı xərclər həmişəlik silinəcək.','reservations.toast.updated': 'Rezervasiya yeniləndi','reservations.toast.removed': 'Rezervasiya silindi',diff --git a/shared/src/i18n/br/reservations.ts b/shared/src/i18n/br/reservations.tsindex e766aba46..8aebad06f 100644--- a/shared/src/i18n/br/reservations.ts+++ b/shared/src/i18n/br/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Tem certeza de que deseja excluir a reserva "{name}"?','reservations.confirm.deleteTitle': 'Excluir reserva?','reservations.confirm.deleteBody': '"{name}" será excluído permanentemente.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" e os custos vinculados serão excluídos permanentemente.','reservations.toast.updated': 'Reserva atualizada','reservations.toast.removed': 'Reserva excluída','reservations.toast.fileUploaded': 'Arquivo enviado',diff --git a/shared/src/i18n/ca/reservations.ts b/shared/src/i18n/ca/reservations.tsindex 5a364f631..cc93095fc 100644--- a/shared/src/i18n/ca/reservations.ts+++ b/shared/src/i18n/ca/reservations.ts@@ -43,6 +43,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Segur que vols eliminar la reserva "{name}"?','reservations.confirm.deleteTitle': 'Vols eliminar la reserva?','reservations.confirm.deleteBody': "« {name} » s'eliminarà permanentment.",+ 'reservations.confirm.deleteBodyWithExpense': "« {name} » i els costos vinculats s'eliminaran permanentment.",'reservations.toast.updated': 'Reserva actualitzada','reservations.toast.removed': 'Reserva eliminada','reservations.toast.fileUploaded': 'Fitxer pujat',diff --git a/shared/src/i18n/cs/reservations.ts b/shared/src/i18n/cs/reservations.tsindex e4097ff3d..72aced063 100644--- a/shared/src/i18n/cs/reservations.ts+++ b/shared/src/i18n/cs/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Opravdu chcete smazat rezervaci „{name}”?','reservations.confirm.deleteTitle': 'Smazat rezervaci?','reservations.confirm.deleteBody': '„{name}” bude trvale smazána.',+ 'reservations.confirm.deleteBodyWithExpense': '„{name}” bude trvale smazána i s propojenými náklady.','reservations.toast.updated': 'Rezervace aktualizována','reservations.toast.removed': 'Rezervace smazána','reservations.toast.fileUploaded': 'Soubor byl nahrán',diff --git a/shared/src/i18n/de/reservations.ts b/shared/src/i18n/de/reservations.tsindex 11664e3b4..535a29cc2 100644--- a/shared/src/i18n/de/reservations.ts+++ b/shared/src/i18n/de/reservations.ts@@ -77,6 +77,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Möchtest du die Reservierung "{name}" wirklich löschen?','reservations.confirm.deleteTitle': 'Buchung löschen?','reservations.confirm.deleteBody': '"{name}" wird unwiderruflich gelöscht.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" wird zusammen mit den verknüpften Kosten unwiderruflich gelöscht.','reservations.toast.updated': 'Reservierung aktualisiert','reservations.toast.removed': 'Reservierung gelöscht','reservations.toast.saveError': 'Fehler beim Speichern',diff --git a/shared/src/i18n/en/reservations.ts b/shared/src/i18n/en/reservations.tsindex a2626ee97..6221450f5 100644--- a/shared/src/i18n/en/reservations.ts+++ b/shared/src/i18n/en/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'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.fileUploaded': 'File uploaded',diff --git a/shared/src/i18n/es/reservations.ts b/shared/src/i18n/es/reservations.tsindex ba344eb48..79168f8e8 100644--- a/shared/src/i18n/es/reservations.ts+++ b/shared/src/i18n/es/reservations.ts@@ -43,6 +43,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '¿Seguro que quieres eliminar la reserva "{name}"?','reservations.confirm.deleteTitle': '¿Eliminar reserva?','reservations.confirm.deleteBody': '« {name} » se eliminará permanentemente.',+ 'reservations.confirm.deleteBodyWithExpense': '« {name} » y sus costes vinculados se eliminarán permanentemente.','reservations.toast.updated': 'Reserva actualizada','reservations.toast.removed': 'Reserva eliminada','reservations.toast.fileUploaded': 'Archivo subido',diff --git a/shared/src/i18n/et/reservations.ts b/shared/src/i18n/et/reservations.tsindex 774eaffd3..74ac33d55 100644--- a/shared/src/i18n/et/reservations.ts+++ b/shared/src/i18n/et/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Kas soovid kindlasti kustutada broneeringu "{name}"?','reservations.confirm.deleteTitle': 'Kas kustutada broneering?','reservations.confirm.deleteBody': '"{name}" kustutatakse jäädavalt.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" kustutatakse jäädavalt koos sellega seotud kuludega.','reservations.toast.updated': 'Broneering uuendatud','reservations.toast.removed': 'Broneering kustutatud','reservations.toast.fileUploaded': 'Fail üles laaditud',diff --git a/shared/src/i18n/fr/reservations.ts b/shared/src/i18n/fr/reservations.tsindex d62f0b2db..f734fec5e 100644--- a/shared/src/i18n/fr/reservations.ts+++ b/shared/src/i18n/fr/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Voulez-vous vraiment supprimer la réservation « {name} » ?','reservations.confirm.deleteTitle': 'Supprimer la réservation ?','reservations.confirm.deleteBody': '« {name} » sera définitivement supprimé.',+ 'reservations.confirm.deleteBodyWithExpense': '« {name} » et ses coûts liés seront définitivement supprimés.','reservations.toast.updated': 'Réservation mise à jour','reservations.toast.removed': 'Réservation supprimée','reservations.toast.fileUploaded': 'Fichier importé',diff --git a/shared/src/i18n/gr/reservations.ts b/shared/src/i18n/gr/reservations.tsindex db5ec7076..7f863900a 100644--- a/shared/src/i18n/gr/reservations.ts+++ b/shared/src/i18n/gr/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Είστε σίγουροι ότι θέλετε να διαγράψετε την κράτηση "{name}";','reservations.confirm.deleteTitle': 'Διαγραφή κράτησης;','reservations.confirm.deleteBody': 'Η κράτηση "{name}" θα διαγραφεί οριστικά.',+ 'reservations.confirm.deleteBodyWithExpense': 'Η κράτηση "{name}" θα διαγραφεί οριστικά μαζί με τα συνδεδεμένα έξοδα.','reservations.toast.updated': 'Η κράτηση ενημερώθηκε','reservations.toast.removed': 'Η κράτηση διαγράφηκε','reservations.toast.fileUploaded': 'Το αρχείο μεταφορτώθηκε',diff --git a/shared/src/i18n/hu/reservations.ts b/shared/src/i18n/hu/reservations.tsindex 6b01944bd..a34792f60 100644--- a/shared/src/i18n/hu/reservations.ts+++ b/shared/src/i18n/hu/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Biztosan törölni szeretnéd a(z) "{name}" foglalást?','reservations.confirm.deleteTitle': 'Foglalás törlése?','reservations.confirm.deleteBody': '"{name}" véglegesen törlődik.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" a hozzá kapcsolt költségekkel együtt véglegesen törlődik.','reservations.toast.updated': 'Foglalás frissítve','reservations.toast.removed': 'Foglalás törölve','reservations.toast.fileUploaded': 'Fájl feltöltve',diff --git a/shared/src/i18n/id/reservations.ts b/shared/src/i18n/id/reservations.tsindex ac08a437d..8cb2cc1a3 100644--- a/shared/src/i18n/id/reservations.ts+++ b/shared/src/i18n/id/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Yakin ingin menghapus reservasi "{name}"?','reservations.confirm.deleteTitle': 'Hapus pemesanan?','reservations.confirm.deleteBody': '"{name}" akan dihapus permanen.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" beserta biaya yang terkait akan dihapus permanen.','reservations.toast.updated': 'Reservasi diperbarui','reservations.toast.removed': 'Reservasi dihapus','reservations.toast.fileUploaded': 'File diunggah',diff --git a/shared/src/i18n/it/reservations.ts b/shared/src/i18n/it/reservations.tsindex c5c458a2d..c9d06456e 100644--- a/shared/src/i18n/it/reservations.ts+++ b/shared/src/i18n/it/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Sei sicuro di voler eliminare la prenotazione "{name}"?','reservations.confirm.deleteTitle': 'Eliminare la prenotazione?','reservations.confirm.deleteBody': '"{name}" verrà eliminato in modo permanente.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" e i costi collegati verranno eliminati in modo permanente.','reservations.toast.updated': 'Prenotazione aggiornata','reservations.toast.removed': 'Prenotazione eliminata','reservations.toast.fileUploaded': 'File caricato',diff --git a/shared/src/i18n/ja/reservations.ts b/shared/src/i18n/ja/reservations.tsindex 3120fb19a..c0d92bf70 100644--- a/shared/src/i18n/ja/reservations.ts+++ b/shared/src/i18n/ja/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '予約「{name}」を削除しますか?','reservations.confirm.deleteTitle': '予約を削除しますか?','reservations.confirm.deleteBody': '「{name}」は完全に削除されます。',+ 'reservations.confirm.deleteBodyWithExpense': '「{name}」と紐づいた費用は完全に削除されます。','reservations.toast.updated': '予約を更新しました','reservations.toast.removed': '予約を削除しました','reservations.toast.fileUploaded': 'ファイルをアップロードしました',diff --git a/shared/src/i18n/ko/reservations.ts b/shared/src/i18n/ko/reservations.tsindex 90d6b78a6..0d6f37963 100644--- a/shared/src/i18n/ko/reservations.ts+++ b/shared/src/i18n/ko/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '예약 "{name}"을(를) 삭제할까요?','reservations.confirm.deleteTitle': '예약을 삭제할까요?','reservations.confirm.deleteBody': '"{name}"이(가) 영구 삭제됩니다.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}"과(와) 연결된 비용이 영구 삭제됩니다.','reservations.toast.updated': '예약이 업데이트되었습니다','reservations.toast.removed': '예약이 삭제되었습니다','reservations.toast.fileUploaded': '파일이 업로드되었습니다',diff --git a/shared/src/i18n/nl/reservations.ts b/shared/src/i18n/nl/reservations.tsindex 5cc3466e4..a43438cff 100644--- a/shared/src/i18n/nl/reservations.ts+++ b/shared/src/i18n/nl/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Weet je zeker dat je de reservering "{name}" wilt verwijderen?','reservations.confirm.deleteTitle': 'Boeking verwijderen?','reservations.confirm.deleteBody': '"{name}" wordt permanent verwijderd.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" en de gekoppelde kosten worden permanent verwijderd.','reservations.toast.updated': 'Reservering bijgewerkt','reservations.toast.removed': 'Reservering verwijderd','reservations.toast.fileUploaded': 'Bestand geüpload',diff --git a/shared/src/i18n/pl/reservations.ts b/shared/src/i18n/pl/reservations.tsindex f2c071fcb..54908fb83 100644--- a/shared/src/i18n/pl/reservations.ts+++ b/shared/src/i18n/pl/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Czy na pewno chcesz usunąć rezerwację "{name}"?','reservations.confirm.deleteTitle': 'Usunąć rezerwację?','reservations.confirm.deleteBody': 'Rezerwacja "{name}" zostanie trwale usunięta.',+ 'reservations.confirm.deleteBodyWithExpense': 'Rezerwacja "{name}" zostanie trwale usunięta wraz z powiązanymi kosztami.','reservations.toast.updated': 'Rezerwacja została zaktualizowana','reservations.toast.removed': 'Rezerwacja została usunięta','reservations.toast.fileUploaded': 'Plik został przesłany',diff --git a/shared/src/i18n/ru/reservations.ts b/shared/src/i18n/ru/reservations.tsindex bef16c550..21555348c 100644--- a/shared/src/i18n/ru/reservations.ts+++ b/shared/src/i18n/ru/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Вы уверены, что хотите удалить бронирование «{name}»?','reservations.confirm.deleteTitle': 'Удалить бронирование?','reservations.confirm.deleteBody': '«{name}» будет удалено навсегда.',+ 'reservations.confirm.deleteBodyWithExpense': '«{name}» и связанные с ним расходы будут удалены навсегда.','reservations.toast.updated': 'Бронирование обновлено','reservations.toast.removed': 'Бронирование удалено','reservations.toast.fileUploaded': 'Файл загружен',diff --git a/shared/src/i18n/sk/reservations.ts b/shared/src/i18n/sk/reservations.tsindex ed8ed0f64..7e727097c 100644--- a/shared/src/i18n/sk/reservations.ts+++ b/shared/src/i18n/sk/reservations.ts@@ -77,6 +77,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Naozaj chcete odstrániť rezerváciu „{name}“?','reservations.confirm.deleteTitle': 'Odstrániť rezerváciu?','reservations.confirm.deleteBody': '„{name}“ bude natrvalo odstránená.',+ 'reservations.confirm.deleteBodyWithExpense': '„{name}“ bude natrvalo odstránená spolu s prepojenými nákladmi.','reservations.toast.updated': 'Rezervácia aktualizovaná','reservations.toast.removed': 'Rezervácia odstránená','reservations.toast.fileUploaded': 'Súbor bol nahraný',diff --git a/shared/src/i18n/sv/reservations.ts b/shared/src/i18n/sv/reservations.tsindex f9bde02fb..b17d29714 100644--- a/shared/src/i18n/sv/reservations.ts+++ b/shared/src/i18n/sv/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Är du säker på att du vill ta bort bokningen "{name}"?','reservations.confirm.deleteTitle': 'Ta bort bokningen?','reservations.confirm.deleteBody': '"{name}" kommer att raderas permanent.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" och de kopplade kostnaderna kommer att raderas permanent.','reservations.toast.updated': 'Bokning uppdaterad','reservations.toast.removed': 'Bokning borttagen','reservations.toast.fileUploaded': 'Fil uppladdad',diff --git a/shared/src/i18n/th/reservations.ts b/shared/src/i18n/th/reservations.tsindex b4e873eb0..708f65b5b 100644--- a/shared/src/i18n/th/reservations.ts+++ b/shared/src/i18n/th/reservations.ts@@ -76,6 +76,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'คุณแน่ใจหรือไม่ว่าต้องการลบการจอง "{name}"','reservations.confirm.deleteTitle': 'ลบการจองใช่ไหม','reservations.confirm.deleteBody': '"{name}" จะถูกลบอย่างถาวร',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" และค่าใช้จ่ายที่เชื่อมโยงไว้จะถูกลบอย่างถาวร','reservations.toast.updated': 'อัพเดตการจองแล้ว','reservations.toast.removed': 'ลบการจองแล้ว','reservations.toast.fileUploaded': 'อัปโหลดไฟล์แล้ว',diff --git a/shared/src/i18n/tr/reservations.ts b/shared/src/i18n/tr/reservations.tsindex ea6586124..f45b66552 100644--- a/shared/src/i18n/tr/reservations.ts+++ b/shared/src/i18n/tr/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '"{name}" rezervasyonunu silmek istediğinizden emin misiniz?','reservations.confirm.deleteTitle': 'Rezervasyon silinsin mi?','reservations.confirm.deleteBody': '"{name}" kalıcı olarak silinecek.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" ve bağlı maliyetleri kalıcı olarak silinecek.','reservations.toast.updated': 'Rezervasyon güncellendi','reservations.toast.removed': 'Rezervasyon silindi','reservations.toast.fileUploaded': 'Dosya yüklendi',diff --git a/shared/src/i18n/uk/reservations.ts b/shared/src/i18n/uk/reservations.tsindex ba302de8d..9561b002a 100644--- a/shared/src/i18n/uk/reservations.ts+++ b/shared/src/i18n/uk/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Ви впевнені, що хочете видалити бронювання «{name}»?','reservations.confirm.deleteTitle': 'Видалити бронювання?','reservations.confirm.deleteBody': '«{name}» буде видалено назавжди.',+ 'reservations.confirm.deleteBodyWithExpense': '«{name}» і пов’язані з ним витрати буде видалено назавжди.','reservations.toast.updated': 'Бронювання оновлено','reservations.toast.removed': 'Бронювання видалено','reservations.toast.fileUploaded': 'Файл завантажено',diff --git a/shared/src/i18n/vi/reservations.ts b/shared/src/i18n/vi/reservations.tsindex bee121855..ee530c13a 100644--- a/shared/src/i18n/vi/reservations.ts+++ b/shared/src/i18n/vi/reservations.ts@@ -75,6 +75,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': 'Bạn có chắc chắn muốn xóa đặt chỗ "{name}" không?','reservations.confirm.deleteTitle': 'Xóa đặt chỗ?','reservations.confirm.deleteBody': '"{name}" sẽ bị xóa vĩnh viễn.',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" và các chi phí liên kết sẽ bị xóa vĩnh viễn.','reservations.toast.updated': 'Đã cập nhật đặt chỗ','reservations.toast.removed': 'Đã xóa đặt chỗ','reservations.toast.fileUploaded': 'Tệp đã được tải lên',diff --git a/shared/src/i18n/zh-TW/reservations.ts b/shared/src/i18n/zh-TW/reservations.tsindex 0a4139e71..4579923b5 100644--- a/shared/src/i18n/zh-TW/reservations.ts+++ b/shared/src/i18n/zh-TW/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '確定要刪除預訂「{name}」嗎?','reservations.confirm.deleteTitle': '刪除預訂?','reservations.confirm.deleteBody': '"{name}" 將被永久刪除。',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" 及其關聯的費用將被永久刪除。','reservations.toast.updated': '預訂已更新','reservations.toast.removed': '預訂已刪除','reservations.toast.fileUploaded': '檔案已上傳',diff --git a/shared/src/i18n/zh/reservations.ts b/shared/src/i18n/zh/reservations.tsindex 9a9d0a41f..2d21a2543 100644--- a/shared/src/i18n/zh/reservations.ts+++ b/shared/src/i18n/zh/reservations.ts@@ -74,6 +74,7 @@ const reservations: TranslationStrings = {'reservations.confirm.delete': '确定要删除预订「{name}」吗?','reservations.confirm.deleteTitle': '删除预订?','reservations.confirm.deleteBody': '"{name}" 将被永久删除。',+ 'reservations.confirm.deleteBodyWithExpense': '"{name}" 及其关联的费用将被永久删除。','reservations.toast.updated': '预订已更新','reservations.toast.removed': '预订已删除','reservations.toast.fileUploaded': '文件已上传',