From ab424a770b7d524080872a3ec97fcfa5df076be5 Mon Sep 17 00:00:00 2001 From: Pavan Date: Wed, 5 Feb 2025 22:25:03 +0530 Subject: [PATCH 01/12] Add delete button functionality to past bookings --- .../components/booking/BookingListItem.tsx | 19 ++++++ .../components/dialog/DeleteHistoryDialog.tsx | 68 +++++++++++++++++++ apps/web/public/static/locales/ar/common.json | 7 +- apps/web/public/static/locales/az/common.json | 6 +- apps/web/public/static/locales/bg/common.json | 6 +- apps/web/public/static/locales/ca/common.json | 6 +- apps/web/public/static/locales/cs/common.json | 6 +- apps/web/public/static/locales/da/common.json | 6 +- apps/web/public/static/locales/de/common.json | 6 +- apps/web/public/static/locales/el/common.json | 6 +- apps/web/public/static/locales/en/common.json | 6 +- .../public/static/locales/es-419/common.json | 6 +- apps/web/public/static/locales/es/common.json | 6 +- apps/web/public/static/locales/et/common.json | 6 +- apps/web/public/static/locales/eu/common.json | 6 +- apps/web/public/static/locales/fi/common.json | 6 +- apps/web/public/static/locales/fr/common.json | 6 +- apps/web/public/static/locales/he/common.json | 7 +- apps/web/public/static/locales/hr/common.json | 6 +- apps/web/public/static/locales/hu/common.json | 6 +- apps/web/public/static/locales/id/common.json | 6 +- apps/web/public/static/locales/it/common.json | 7 +- apps/web/public/static/locales/ja/common.json | 7 +- apps/web/public/static/locales/km/common.json | 6 +- apps/web/public/static/locales/ko/common.json | 6 +- apps/web/public/static/locales/lv/common.json | 6 +- apps/web/public/static/locales/nl/common.json | 6 +- apps/web/public/static/locales/no/common.json | 6 +- apps/web/public/static/locales/pl/common.json | 6 +- .../public/static/locales/pt-BR/common.json | 6 +- apps/web/public/static/locales/pt/common.json | 6 +- apps/web/public/static/locales/ro/common.json | 6 +- apps/web/public/static/locales/ru/common.json | 6 +- .../public/static/locales/sk-SK/common.json | 6 +- apps/web/public/static/locales/sk/common.json | 6 +- apps/web/public/static/locales/sr/common.json | 6 +- apps/web/public/static/locales/sv/common.json | 6 +- apps/web/public/static/locales/ta/common.json | 6 +- apps/web/public/static/locales/tr/common.json | 6 +- apps/web/public/static/locales/uk/common.json | 6 +- apps/web/public/static/locales/vi/common.json | 6 +- .../public/static/locales/zh-CN/common.json | 6 +- .../public/static/locales/zh-TW/common.json | 6 +- .../routers/viewer/bookings/_router.tsx | 21 ++++++ .../viewer/bookings/deleteHistory.handler.ts | 31 +++++++++ .../viewer/bookings/deleteHistory.schema.ts | 7 ++ 46 files changed, 355 insertions(+), 41 deletions(-) create mode 100644 apps/web/components/dialog/DeleteHistoryDialog.tsx create mode 100644 packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts create mode 100644 packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index ee86420da8e3be..a5a17a1978a8d5 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -50,6 +50,7 @@ import assignmentReasonBadgeTitleMap from "@lib/booking/assignmentReasonBadgeTit import { AddGuestsDialog } from "@components/dialog/AddGuestsDialog"; import { ChargeCardDialog } from "@components/dialog/ChargeCardDialog"; +import DeleteHistoryDialog from "@components/dialog/DeleteHistoryDialog"; import { EditLocationDialog } from "@components/dialog/EditLocationDialog"; import { ReassignDialog } from "@components/dialog/ReassignDialog"; import { RerouteDialog } from "@components/dialog/RerouteDialog"; @@ -289,6 +290,18 @@ function BookingListItem(booking: BookingItemProps) { }); } + if (isBookingInPast) { + editBookingActions.push({ + id: "delete_history", + label: t("delete_history_title"), + onClick: () => { + setIsOpenDeleteHistoryDialog(true); + }, + icon: "trash" as const, + color: "destructive", + }); + } + let bookedActions: ActionType[] = [ { id: "cancel", @@ -345,6 +358,7 @@ function BookingListItem(booking: BookingItemProps) { const [isOpenSetLocationDialog, setIsOpenLocationDialog] = useState(false); const [isOpenAddGuestsDialog, setIsOpenAddGuestsDialog] = useState(false); const [rerouteDialogIsOpen, setRerouteDialogIsOpen] = useState(false); + const [isOpenDeleteHistoryDialog, setIsOpenDeleteHistoryDialog] = useState(false); const setLocationMutation = trpc.viewer.bookings.editLocation.useMutation({ onSuccess: () => { showToast(t("location_updated"), "success"); @@ -458,6 +472,11 @@ function BookingListItem(booking: BookingItemProps) { setIsOpenDialog={setIsOpenAddGuestsDialog} bookingId={booking.id} /> + {booking.paid && booking.payment[0] && ( >; + bookingId: number; +} + +const DeleteHistoryDialog = (props: IDeleteHistoryDialog) => { + const { t } = useLocale(); + const { isOpenDialog, setIsOpenDialog, bookingId } = props; + const utils = trpc.useUtils(); + + const deleteHistoryBookingMutation = trpc.viewer.bookings.deleteHistory.useMutation({ + onSuccess: async () => { + showToast(t("booking_delete_successfully"), "success"); + setIsOpenDialog(false); + utils.viewer.bookings.invalidate(); + }, + onError: (err) => { + const message = `${err.data?.code}: ${t(err.message)}`; + showToast(message || t("unable_to_delete_booking"), "error"); + }, + }); + + const handleDelete = () => { + deleteHistoryBookingMutation.mutate({ id: bookingId }); + }; + + return ( + + +
+
+ +
+
+ +

{t("delete_history_description")}

+ + + + +
+
+
+
+ ); +}; + +export default DeleteHistoryDialog; diff --git a/apps/web/public/static/locales/ar/common.json b/apps/web/public/static/locales/ar/common.json index 914aa2be2a3217..653eab85d2c23d 100644 --- a/apps/web/public/static/locales/ar/common.json +++ b/apps/web/public/static/locales/ar/common.json @@ -2952,5 +2952,10 @@ "desc": "تنازلي", "verify_email": "التحقق من البريد الإلكتروني", "verify_email_change": "تأكيد تغيير البريد الإلكتروني", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ أضف السلاسل الجديدة أعلاه هنا ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ أضف السلاسل الجديدة أعلاه هنا ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "حذف سجل الحجز", + "delete_history_description": "هل أنت متأكد أنك تريد حذف هذا من سجل الحجز الخاص بك؟", + "unable_to_delete_booking": "تعذر حذف الحجز", + "booking_delete_successfully": "تم حذف الحجز بنجاح" + } \ No newline at end of file diff --git a/apps/web/public/static/locales/az/common.json b/apps/web/public/static/locales/az/common.json index 908905729bf9c9..96b114cb61732b 100644 --- a/apps/web/public/static/locales/az/common.json +++ b/apps/web/public/static/locales/az/common.json @@ -2952,5 +2952,9 @@ "desc": "Azalan", "verify_email": "E-poçtu təsdiqlə", "verify_email_change": "E-poçt dəyişikliyini təsdiqlə", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni sətirləri bura əlavə edin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni sətirləri bura əlavə edin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Rezervasiya tarixçəsini sil", + "delete_history_description": "Rezervasiya tarixçənizdən bunu silmək istədiyinizə əminsiniz?", + "unable_to_delete_booking": "Rezervasiyanı silmək mümkün olmadı", + "booking_delete_successfully": "Rezervasiya uğurla silindi" } \ No newline at end of file diff --git a/apps/web/public/static/locales/bg/common.json b/apps/web/public/static/locales/bg/common.json index 284bcbbb909480..4f8ec76d1d1c03 100644 --- a/apps/web/public/static/locales/bg/common.json +++ b/apps/web/public/static/locales/bg/common.json @@ -2952,5 +2952,9 @@ "desc": "Низх", "verify_email": "Потвърди имейл", "verify_email_change": "Потвърди промяната на имейл", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавете новите си низове над този ред ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавете новите си низове над този ред ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Изтриване на историята на резервации", + "delete_history_description": "Сигурни ли сте, че искате да изтриете това от вашата история на резервации?", + "unable_to_delete_booking": "Неуспешно изтриване на резервацията", + "booking_delete_successfully": "Резервацията е изтрита успешно" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ca/common.json b/apps/web/public/static/locales/ca/common.json index 67bc0fafff5631..ce8f7f0f79080e 100644 --- a/apps/web/public/static/locales/ca/common.json +++ b/apps/web/public/static/locales/ca/common.json @@ -2952,5 +2952,9 @@ "desc": "Desc", "verify_email": "Verifica el correu", "verify_email_change": "Verifica el canvi de correu electrònic", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Afegiu les vostres noves cadenes a dalt ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Afegiu les vostres noves cadenes a dalt ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Esborrar historial de reserves", + "delete_history_description": "Estàs segur que vols eliminar això del teu historial de reserves?", + "unable_to_delete_booking": "No es pot eliminar la reserva", + "booking_delete_successfully": "Reserva eliminada amb èxit" } \ No newline at end of file diff --git a/apps/web/public/static/locales/cs/common.json b/apps/web/public/static/locales/cs/common.json index aaa8433d898d41..cb52aae7300ff2 100644 --- a/apps/web/public/static/locales/cs/common.json +++ b/apps/web/public/static/locales/cs/common.json @@ -2952,5 +2952,9 @@ "desc": "Sestupně", "verify_email": "Ověřit e-mail", "verify_email_change": "Ověřit změnu e-mailu", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Přidejte své nové řetězce nahoru ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Přidejte své nové řetězce nahoru ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Smazat historii rezervací", + "delete_history_description": "Jste si jistý, že to chcete smazat ze své historie rezervací?", + "unable_to_delete_booking": "Nelze smazat rezervaci", + "booking_delete_successfully": "Rezervace byla úspěšně smazána" } \ No newline at end of file diff --git a/apps/web/public/static/locales/da/common.json b/apps/web/public/static/locales/da/common.json index 951d69b75a3021..a45db57e9359bc 100644 --- a/apps/web/public/static/locales/da/common.json +++ b/apps/web/public/static/locales/da/common.json @@ -2952,5 +2952,9 @@ "desc": "Faldende", "verify_email": "Bekræft e-mail", "verify_email_change": "Bekræft ændring af e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Tilføj dine nye strenge ovenfor her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Tilføj dine nye strenge ovenfor her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Slet bookinghistorik", + "delete_history_description": "Er du sikker på, at du vil slette dette fra din bookinghistorik?", + "unable_to_delete_booking": "Kan ikke slette reservation", + "booking_delete_successfully": "Reservationen blev slettet" } \ No newline at end of file diff --git a/apps/web/public/static/locales/de/common.json b/apps/web/public/static/locales/de/common.json index 05db884bb9d9f5..08913ab2dcacda 100644 --- a/apps/web/public/static/locales/de/common.json +++ b/apps/web/public/static/locales/de/common.json @@ -2952,5 +2952,9 @@ "desc": "Absteigend", "verify_email": "E-Mail verifizieren", "verify_email_change": "E-Mail-Änderung bestätigen", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Fügen Sie Ihre neuen Code-Zeilen über dieser hinzu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Fügen Sie Ihre neuen Code-Zeilen über dieser hinzu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Buchungshistorie löschen", + "delete_history_description": "Sind Sie sicher, dass Sie dies aus Ihrer Buchungshistorie löschen möchten?", + "unable_to_delete_booking": "Buchung konnte nicht gelöscht werden", + "booking_delete_successfully": "Buchung erfolgreich gelöscht" } \ No newline at end of file diff --git a/apps/web/public/static/locales/el/common.json b/apps/web/public/static/locales/el/common.json index caaae44189bc36..8047dcfdc072e8 100644 --- a/apps/web/public/static/locales/el/common.json +++ b/apps/web/public/static/locales/el/common.json @@ -2952,5 +2952,9 @@ "desc": "Φθίνουσα", "verify_email": "Επαλήθευση email", "verify_email_change": "Επαλήθευση αλλαγής email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Προσθέστε τις νέες συμβολοσειρές σας πάνω από εδώ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Προσθέστε τις νέες συμβολοσειρές σας πάνω από εδώ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Διαγραφή ιστορικού κρατήσεων", + "delete_history_description": "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό από το ιστορικό κρατήσεών σας;", + "unable_to_delete_booking": "Δεν είναι δυνατή η διαγραφή της κράτησης", + "booking_delete_successfully": "Η κράτηση διαγράφηκε με επιτυχία" } \ No newline at end of file diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 7f2a6fc1e67adf..628a7db6f171f7 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -2952,5 +2952,9 @@ "desc": "Desc", "verify_email": "Verify email", "verify_email_change": "Verify email change", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Delete booking history", + "delete_history_description": "Are you sure you want to delete this from your booking history?", + "unable_to_delete_booking": "Unable to delete booking", + "booking_delete_successfully": "Booking deleted successfully" } diff --git a/apps/web/public/static/locales/es-419/common.json b/apps/web/public/static/locales/es-419/common.json index a3f492eb5de63c..19510db0c89a25 100644 --- a/apps/web/public/static/locales/es-419/common.json +++ b/apps/web/public/static/locales/es-419/common.json @@ -2952,5 +2952,9 @@ "desc": "Desc", "verify_email": "Verificar correo", "verify_email_change": "Verificar cambio de correo electrónico", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agrega tus nuevas cadenas arriba de esta línea ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agrega tus nuevas cadenas arriba de esta línea ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Eliminar historial de reservas", + "delete_history_description": "¿Seguro que quieres eliminar esto de tu historial de reservas?", + "unable_to_delete_booking": "No se puede borrar la reserva", + "booking_delete_successfully": "Reserva eliminada exitosamente" } \ No newline at end of file diff --git a/apps/web/public/static/locales/es/common.json b/apps/web/public/static/locales/es/common.json index 403c0f219b2f67..91a0d6c7c74a98 100644 --- a/apps/web/public/static/locales/es/common.json +++ b/apps/web/public/static/locales/es/common.json @@ -2952,5 +2952,9 @@ "desc": "Desc", "verify_email": "Verificar correo", "verify_email_change": "Verificar cambio de correo electrónico", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agregue sus nuevas cadenas arriba ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agregue sus nuevas cadenas arriba ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Eliminar historial de reservas", + "delete_history_description": "¿Estás seguro de que quieres eliminar esto de tu historial de reservas?", + "unable_to_delete_booking": "No se puede eliminar la reserva", + "booking_delete_successfully": "Reserva eliminada con éxito" } \ No newline at end of file diff --git a/apps/web/public/static/locales/et/common.json b/apps/web/public/static/locales/et/common.json index b63b1c7ce7e9cf..c81e497c4d7a03 100644 --- a/apps/web/public/static/locales/et/common.json +++ b/apps/web/public/static/locales/et/common.json @@ -2952,5 +2952,9 @@ "desc": "Kahanev", "verify_email": "Kinnita e-post", "verify_email_change": "Kinnita e-posti aadressi muutmine", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Kustuta broneeringute ajalugu", + "delete_history_description": "Kas olete kindel, et soovite selle oma broneeringu ajaloost kustutada?", + "unable_to_delete_booking": "Broneeringu kustutamine ebaõnnestus", + "booking_delete_successfully": "Broneering on edukalt kustutatud" } \ No newline at end of file diff --git a/apps/web/public/static/locales/eu/common.json b/apps/web/public/static/locales/eu/common.json index 6b746baa545608..9208d41e13f6c7 100644 --- a/apps/web/public/static/locales/eu/common.json +++ b/apps/web/public/static/locales/eu/common.json @@ -2952,5 +2952,9 @@ "desc": "Beherantz", "verify_email": "Egiaztatu emaila", "verify_email_change": "Egiaztatu posta elektronikoaren aldaketa", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Gehitu zure kate berriak honen gainean ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Gehitu zure kate berriak honen gainean ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Ezabatu erreserben historia", + "delete_history_description": "Ziur zaude hau zure erreserba-historiatik ezabatu nahi duzula?", + "unable_to_delete_booking": "Ezin da erreserba ezabatu", + "booking_delete_successfully": "Erreserba ongi ezabatu da" } \ No newline at end of file diff --git a/apps/web/public/static/locales/fi/common.json b/apps/web/public/static/locales/fi/common.json index 19e20290f30e1c..2eb832e037df72 100644 --- a/apps/web/public/static/locales/fi/common.json +++ b/apps/web/public/static/locales/fi/common.json @@ -2952,5 +2952,9 @@ "desc": "Laskeva", "verify_email": "Vahvista sähköposti", "verify_email_change": "Vahvista sähköpostin muutos", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Lisää uudet merkkijonot tämän yläpuolelle ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Lisää uudet merkkijonot tämän yläpuolelle ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Poista varauksen historia", + "delete_history_description": "Oletko varma, että haluat poistaa tämän varaus historiastasi?", + "unable_to_delete_booking": "Varausta ei voi poistaa", + "booking_delete_successfully": "Varaus poistettu onnistuneesti" } \ No newline at end of file diff --git a/apps/web/public/static/locales/fr/common.json b/apps/web/public/static/locales/fr/common.json index 23cf5a0aa12236..de523b0c248f3b 100644 --- a/apps/web/public/static/locales/fr/common.json +++ b/apps/web/public/static/locales/fr/common.json @@ -2952,5 +2952,9 @@ "desc": "Desc", "verify_email": "Vérifier l'e-mail", "verify_email_change": "Vérifier le changement d'e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Ajoutez vos nouvelles chaînes ci-dessus ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Ajoutez vos nouvelles chaînes ci-dessus ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Supprimer l'historique des réservations", + "delete_history_description": "Êtes-vous sûr de vouloir supprimer ceci de votre historique de réservation ?", + "unable_to_delete_booking": "Impossible de supprimer la réservation", + "booking_delete_successfully": "Réservation supprimée avec succès" } \ No newline at end of file diff --git a/apps/web/public/static/locales/he/common.json b/apps/web/public/static/locales/he/common.json index c3e21ff19b2b47..7a88fdbd48bff0 100644 --- a/apps/web/public/static/locales/he/common.json +++ b/apps/web/public/static/locales/he/common.json @@ -2952,5 +2952,10 @@ "desc": "סדר יורד", "verify_email": "אימות אימייל", "verify_email_change": "אימות שינוי כתובת דוא\"ל", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "מחיקת היסטוריית הזמנות", + "delete_history_description": "האם אתה בטוח שברצונך למחוק זאת מהיסטוריית ההזמנות שלך?", + "unable_to_delete_booking": "לא ניתן למחוק את ההזמנה", + "booking_delete_successfully": "ההזמנה נמחקה בהצלחה" + } \ No newline at end of file diff --git a/apps/web/public/static/locales/hr/common.json b/apps/web/public/static/locales/hr/common.json index 3e46418caf9a09..2323092b691804 100644 --- a/apps/web/public/static/locales/hr/common.json +++ b/apps/web/public/static/locales/hr/common.json @@ -444,5 +444,9 @@ "ooo_select_reason": "Odaberi razlog", "enterprise_license_locally": "Možete testirati ovu značajku lokalno, ali ne u proizvodnji.", "enterprise_license_sales": "Da biste se nadogradili na poslovnu verziju, obratite se našem timu za prodaju. Ako je već licencni ključ na mjestu, kontaktirajte support@cal.com za pomoć.", - "apply_to_all_event_types": "Primjenjuje se na sve, uključujući buduće vrste događaja" + "apply_to_all_event_types": "Primjenjuje se na sve, uključujući buduće vrste događaja", + "delete_history_title": "Izbriši povijest rezervacija", + "delete_history_description": "Jeste li sigurni da želite izbrisati ovo iz svoje povijesti rezervacija?", + "unable_to_delete_booking": "Nemoguće izbrisati rezervaciju", + "booking_delete_successfully": "Rezervacija uspješno izbrisana" } diff --git a/apps/web/public/static/locales/hu/common.json b/apps/web/public/static/locales/hu/common.json index 3e9840b4ec4bec..93f7d0dcb625d4 100644 --- a/apps/web/public/static/locales/hu/common.json +++ b/apps/web/public/static/locales/hu/common.json @@ -2952,5 +2952,9 @@ "desc": "Csökkenő", "verify_email": "E-mail megerősítése", "verify_email_change": "E-mail-cím módosításának megerősítése", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adja hozzá az új karakterláncokat fent ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adja hozzá az új karakterláncokat fent ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Foglalási előzmények törlése", + "delete_history_description": "Biztosan törölni szeretné ezt a foglalási előzményeiből?", + "unable_to_delete_booking": "Nem sikerült törölni a foglalást", + "booking_delete_successfully": "A foglalás sikeresen törölve" } \ No newline at end of file diff --git a/apps/web/public/static/locales/id/common.json b/apps/web/public/static/locales/id/common.json index 84481ec5097145..c73a2c7bfc7b54 100644 --- a/apps/web/public/static/locales/id/common.json +++ b/apps/web/public/static/locales/id/common.json @@ -154,5 +154,9 @@ "ooo_select_reason": "Pilih alasan", "enterprise_license_locally": "Anda dapat menguji fitur ini secara lokal tetapi tidak pada produksi.", "enterprise_license_sales": "Untuk meningkatkan ke edisi perusahaan, hubungi tim penjualan kami. Jika kunci lisensi sudah ada, hubungi support@cal.com untuk bantuan.", - "apply_to_all_event_types": "Terapkan untuk semua, termasuk jenis acara di masa depan" + "apply_to_all_event_types": "Terapkan untuk semua, termasuk jenis acara di masa depan", + "delete_history_title": "Hapus riwayat pemesanan", + "delete_history_description": "Apakah Anda yakin ingin menghapus ini dari riwayat pemesanan Anda?", + "unable_to_delete_booking": "Tidak dapat menghapus pemesanan", + "booking_delete_successfully": "Pemesanan berhasil dihapus" } diff --git a/apps/web/public/static/locales/it/common.json b/apps/web/public/static/locales/it/common.json index b373b31cd2a4ba..d69952dfa1447e 100644 --- a/apps/web/public/static/locales/it/common.json +++ b/apps/web/public/static/locales/it/common.json @@ -2952,5 +2952,10 @@ "desc": "Decrescente", "verify_email": "Verifica email", "verify_email_change": "Verifica la modifica dell'email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Aggiungi le tue nuove stringhe qui sopra ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Aggiungi le tue nuove stringhe qui sopra ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Elimina cronologia prenotazioni", + "delete_history_description": "Sei sicuro di voler eliminare questo dalla tua cronologia delle prenotazioni?", + "unable_to_delete_booking": "Impossibile eliminare la prenotazione", + "booking_delete_successfully": "Prenotazione eliminata con successo" + } \ No newline at end of file diff --git a/apps/web/public/static/locales/ja/common.json b/apps/web/public/static/locales/ja/common.json index 4a7a759786dc7a..b33d339c5b0d05 100644 --- a/apps/web/public/static/locales/ja/common.json +++ b/apps/web/public/static/locales/ja/common.json @@ -2952,5 +2952,10 @@ "desc": "降順", "verify_email": "メールアドレスを確認", "verify_email_change": "メールアドレスの変更を確認", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ この上に新しい文字列を追加してください ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ この上に新しい文字列を追加してください ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "予約履歴を削除", + "delete_history_description": "予約履歴からこれを削除してもよろしいですか?", + "unable_to_delete_booking": "予約を削除できません", + "booking_delete_successfully": "予約が正常に削除されました" + } \ No newline at end of file diff --git a/apps/web/public/static/locales/km/common.json b/apps/web/public/static/locales/km/common.json index e75c3045c05a48..8f027eda134633 100644 --- a/apps/web/public/static/locales/km/common.json +++ b/apps/web/public/static/locales/km/common.json @@ -2952,5 +2952,9 @@ "desc": "ចុះ", "verify_email": "ផ្ទៀងផ្ទាត់អ៊ីមែល", "verify_email_change": "ផ្ទៀងផ្ទាត់ការផ្លាស់ប្តូរអ៊ីមែល", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ បន្ថែមខ្សែអក្សរថ្មីរបស់អ្នកនៅខាងលើនេះ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ បន្ថែមខ្សែអក្សរថ្មីរបស់អ្នកនៅខាងលើនេះ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "លុបប្រវត្តិការកក់", + "delete_history_description": "តើអ្នកប្រាកដថាចង់លុបវាចេញពីប្រវត្តិការកក់របស់អ្នកឬ?", + "unable_to_delete_booking": "មិនអាចលុបការកក់បានទេ", + "booking_delete_successfully": "ការកក់ត្រូវបានលុបដោយជោគជ័យ" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ko/common.json b/apps/web/public/static/locales/ko/common.json index 71571639ef7c6f..25bc0a1ab9fc2b 100644 --- a/apps/web/public/static/locales/ko/common.json +++ b/apps/web/public/static/locales/ko/common.json @@ -2952,5 +2952,9 @@ "desc": "내림차순", "verify_email": "이메일 인증", "verify_email_change": "이메일 변경 확인", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 여기에 새 문자열을 추가하세요 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 여기에 새 문자열을 추가하세요 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "예약 기록 삭제", + "delete_history_description": "예약 기록에서 이것을 삭제하시겠습니까?", + "unable_to_delete_booking": "예약을 삭제할 수 없습니다", + "booking_delete_successfully": "예약이 성공적으로 삭제되었습니다" } \ No newline at end of file diff --git a/apps/web/public/static/locales/lv/common.json b/apps/web/public/static/locales/lv/common.json index 7ebbd2cf06450c..90aca5d67dffd9 100644 --- a/apps/web/public/static/locales/lv/common.json +++ b/apps/web/public/static/locales/lv/common.json @@ -151,5 +151,9 @@ "ooo_select_reason": "Izvēlieties iemeslu", "enterprise_license_locally": "Jūs varat testēt šo funkciju vietēji, bet ne ražošanas vidē.", "enterprise_license_sales": "Lai uzlabotu uz uzņēmuma izdevumu, lūdzu, sazinieties ar mūsu pārdošanas komandu. Ja licences atslēga jau ir, lūdzu, sazinieties ar support@cal.com uz palīdzību.", - "apply_to_all_event_types": "Piemēroties visiem, ieskaitot arī nākotnes notikumu veidus" + "apply_to_all_event_types": "Piemēroties visiem, ieskaitot arī nākotnes notikumu veidus", + "delete_history_title": "Dzēst rezervācijas vēsturi", + "delete_history_description": "Vai esat pārliecināts, ka vēlaties to dzēst no savas rezervāciju vēstures?", + "unable_to_delete_booking": "Nevar izdzēst rezervāciju", + "booking_delete_successfully": "Rezervācija veiksmīgi izdzēsta" } diff --git a/apps/web/public/static/locales/nl/common.json b/apps/web/public/static/locales/nl/common.json index 5fc30002d05c91..8c726d78c0a40f 100644 --- a/apps/web/public/static/locales/nl/common.json +++ b/apps/web/public/static/locales/nl/common.json @@ -2952,5 +2952,9 @@ "desc": "Aflopend", "verify_email": "E-mail verifiëren", "verify_email_change": "Verifieer e-mailwijziging", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Voeg uw nieuwe strings hierboven toe ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Voeg uw nieuwe strings hierboven toe ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Boekingsgeschiedenis verwijderen", + "delete_history_description": "Weet je zeker dat je dit uit je boekingsgeschiedenis wilt verwijderen?", + "unable_to_delete_booking": "Kan reservering niet verwijderen", + "booking_delete_successfully": "Reservering succesvol verwijderd" } \ No newline at end of file diff --git a/apps/web/public/static/locales/no/common.json b/apps/web/public/static/locales/no/common.json index 5c4d12fff969aa..98233e7b4d696a 100644 --- a/apps/web/public/static/locales/no/common.json +++ b/apps/web/public/static/locales/no/common.json @@ -2952,5 +2952,9 @@ "desc": "Synkende", "verify_email": "Bekreft e-post", "verify_email_change": "Bekreft endring av e-post", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Legg til dine nye strenger over her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Legg til dine nye strenger over her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Slett bestillingshistorikk", + "delete_history_description": "Er du sikker på at du vil slette dette fra din bestillingshistorikk?", + "unable_to_delete_booking": "Kan ikke slette bestillingen", + "booking_delete_successfully": "Bestillingen ble slettet" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pl/common.json b/apps/web/public/static/locales/pl/common.json index a58e865e7df9e4..b028cf5c7fdc6f 100644 --- a/apps/web/public/static/locales/pl/common.json +++ b/apps/web/public/static/locales/pl/common.json @@ -2952,5 +2952,9 @@ "desc": "Malejąco", "verify_email": "Zweryfikuj email", "verify_email_change": "Zweryfikuj zmianę adresu email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodaj nowe ciągi powyżej ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodaj nowe ciągi powyżej ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Usuń historię rezerwacji", + "delete_history_description": "Czy na pewno chcesz usunąć to ze swojej historii rezerwacji?", + "unable_to_delete_booking": "Nie można usunąć rezerwacji", + "booking_delete_successfully": "Rezerwacja została pomyślnie usunięta" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pt-BR/common.json b/apps/web/public/static/locales/pt-BR/common.json index 378d57696e5e7a..3df67f0644c03f 100644 --- a/apps/web/public/static/locales/pt-BR/common.json +++ b/apps/web/public/static/locales/pt-BR/common.json @@ -2952,5 +2952,9 @@ "desc": "Decrescente", "verify_email": "Verificar e-mail", "verify_email_change": "Verificar alteração de e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adicione suas novas strings aqui em cima ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adicione suas novas strings aqui em cima ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Excluir histórico de reservas", + "delete_history_description": "Tem certeza de que deseja excluir isto do seu histórico de reservas?", + "unable_to_delete_booking": "Não foi possível excluir a reserva", + "booking_delete_successfully": "Reserva excluída com sucesso" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pt/common.json b/apps/web/public/static/locales/pt/common.json index ab819c021f7046..4ec5898aebda08 100644 --- a/apps/web/public/static/locales/pt/common.json +++ b/apps/web/public/static/locales/pt/common.json @@ -2952,5 +2952,9 @@ "desc": "Decrescente", "verify_email": "Verificar e-mail", "verify_email_change": "Verificar alteração de e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Eliminar histórico de reservas", + "delete_history_description": "Tem a certeza de que deseja eliminar isto do seu histórico de reservas?", + "unable_to_delete_booking": "Não foi possível eliminar a reserva", + "booking_delete_successfully": "Reserva eliminada com sucesso" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ro/common.json b/apps/web/public/static/locales/ro/common.json index 38eb2621a462a4..312ddbe0edf130 100644 --- a/apps/web/public/static/locales/ro/common.json +++ b/apps/web/public/static/locales/ro/common.json @@ -2952,5 +2952,9 @@ "desc": "Descrescător", "verify_email": "Verifică email-ul", "verify_email_change": "Verifică schimbarea adresei de email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adăugați stringurile noi deasupra acestui rând ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adăugați stringurile noi deasupra acestui rând ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Șterge istoricul rezervărilor", + "delete_history_description": "Ești sigur că vrei să ștergi acest lucru din istoricul tău de rezervări?", + "unable_to_delete_booking": "Nu s-a putut șterge rezervarea", + "booking_delete_successfully": "Rezervarea a fost ștearsă cu succes" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ru/common.json b/apps/web/public/static/locales/ru/common.json index 8fad2ab5e1746d..1101e23e0b8579 100644 --- a/apps/web/public/static/locales/ru/common.json +++ b/apps/web/public/static/locales/ru/common.json @@ -2952,5 +2952,9 @@ "desc": "По убыванию", "verify_email": "Подтвердить email", "verify_email_change": "Подтвердить изменение email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавьте строки выше ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавьте строки выше ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Удалить историю бронирований", + "delete_history_description": "Вы уверены, что хотите удалить это из своей истории бронирований?", + "unable_to_delete_booking": "Не удалось удалить бронирование", + "booking_delete_successfully": "Бронирование успешно удалено" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sk-SK/common.json b/apps/web/public/static/locales/sk-SK/common.json index c5b987e6a789e5..dba818f354f5b0 100644 --- a/apps/web/public/static/locales/sk-SK/common.json +++ b/apps/web/public/static/locales/sk-SK/common.json @@ -2952,5 +2952,9 @@ "desc": "Zostupne", "verify_email": "Overiť email", "verify_email_change": "Overiť zmenu e-mailu", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Pridajte svoje nové reťazce nad túto líniu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Pridajte svoje nové reťazce nad túto líniu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Odstrániť históriu rezervácií", + "delete_history_description": "Ste si istí, že to chcete odstrániť z histórie rezervácií?", + "unable_to_delete_booking": "Nie je možné odstrániť rezerváciu", + "booking_delete_successfully": "Rezervácia bola úspešne odstránená" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sk/common.json b/apps/web/public/static/locales/sk/common.json index e55a08e5be7349..65d949f54d91b0 100644 --- a/apps/web/public/static/locales/sk/common.json +++ b/apps/web/public/static/locales/sk/common.json @@ -55,5 +55,9 @@ "ooo_select_reason": "Vybrať dôvod", "enterprise_license_locally": "Túto funkciu môžete otestovať lokálne, ale nie v produkčnom prostredí.", "enterprise_license_sales": "Na upgradovanie na podnikateľskú verziu kontaktujte náš obchodný tím. Ak už je licenčný kľúč na mieste, kontaktujte support@cal.com pre pomoc.", - "apply_to_all_event_types": "Platí pre všetky, vrátane budúcich typov udalostí" + "apply_to_all_event_types": "Platí pre všetky, vrátane budúcich typov udalostí", + "delete_history_title": "Odstrániť históriu rezervácií", + "delete_history_description": "Ste si istí, že to chcete odstrániť z histórie rezervácií?", + "unable_to_delete_booking": "Nie je možné odstrániť rezerváciu", + "booking_delete_successfully": "Rezervácia bola úspešne odstránená" } diff --git a/apps/web/public/static/locales/sr/common.json b/apps/web/public/static/locales/sr/common.json index 786335e184f875..48bc0b65196715 100644 --- a/apps/web/public/static/locales/sr/common.json +++ b/apps/web/public/static/locales/sr/common.json @@ -2952,5 +2952,9 @@ "desc": "Opadajuće", "verify_email": "Potvrdi email", "verify_email_change": "Potvrdi promenu email adrese", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodajte svoje nove stringove iznad ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodajte svoje nove stringove iznad ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Избришите историју резервација", + "delete_history_description": "Да ли сте сигурни да желите да избришете ово из своје историје резервација?", + "unable_to_delete_booking": "Nije moguće obrisati rezervaciju", + "booking_delete_successfully": "Rezervacija je uspešno obrisana" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sv/common.json b/apps/web/public/static/locales/sv/common.json index c51ad7018e9195..10729bb8b9b58f 100644 --- a/apps/web/public/static/locales/sv/common.json +++ b/apps/web/public/static/locales/sv/common.json @@ -2952,5 +2952,9 @@ "desc": "Fallande", "verify_email": "Verifiera e-post", "verify_email_change": "Verifiera ändring av e-postadress", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Radera bokningshistorik", + "delete_history_description": "Är du säker på att du vill radera detta från din bokningshistorik?", + "unable_to_delete_booking": "Det går inte att ta bort bokningen", + "booking_delete_successfully": "Bokningen har tagits bort" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ta/common.json b/apps/web/public/static/locales/ta/common.json index 22e8ab36a139de..87dc6bf3ea1a31 100644 --- a/apps/web/public/static/locales/ta/common.json +++ b/apps/web/public/static/locales/ta/common.json @@ -199,5 +199,9 @@ "ooo_select_reason": "காரணம் தேர்ந்தெடு", "enterprise_license_locally": "இந்த சாதனையை நீங்கள் உள்ளூரில் சோதிக்கலாம் ஆனால் தயாரிப்பில் இல்லை.", "enterprise_license_sales": "பணியில் பதிவேற்றம் செய்து தொழில் பதிப்பிற்கு மாற்றுங்கள் என்றால் எங்கள் விற்பனை குழுவுடன் தொடர்பு கொள்ளுங்கள். ஒரு உரிமை முக்கிய தொடர்பு ஏற்கனவே உள்ளது என்றால் support@cal.com க்கு தொடர்பு கொள்ளுங்கள் உதவிக்கு.", - "apply_to_all_event_types": "எல்லா நிகழ்வுகள் தொடர்புகளிலும் பயன்படுத்துங்கள், எதிர்கால நிகழ்வுகள் தொடர்புகள் உட்பட." + "apply_to_all_event_types": "எல்லா நிகழ்வுகள் தொடர்புகளிலும் பயன்படுத்துங்கள், எதிர்கால நிகழ்வுகள் தொடர்புகள் உட்பட.", + "delete_history_title": "முன்பதிவு வரலாற்றை நீக்கு", + "delete_history_description": "உங்கள் முன்பதிவு வரலாற்றிலிருந்து இதை நீக்க விரும்புகிறீர்களா?", + "unable_to_delete_booking": "முன்பதிவை நீக்க முடியவில்லை", + "booking_delete_successfully": "முன்பதிவு வெற்றிகரமாக நீக்கப்பட்டது" } diff --git a/apps/web/public/static/locales/tr/common.json b/apps/web/public/static/locales/tr/common.json index 022198ca78df18..05a4be942edc67 100644 --- a/apps/web/public/static/locales/tr/common.json +++ b/apps/web/public/static/locales/tr/common.json @@ -2952,5 +2952,9 @@ "desc": "Azalan", "verify_email": "E-posta doğrula", "verify_email_change": "E-posta değişikliğini doğrula", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni dizelerinizi yukarıya ekleyin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni dizelerinizi yukarıya ekleyin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Rezervasyon geçmişini sil", + "delete_history_description": "Bunu rezervasyon geçmişinizden silmek istediğinize emin misiniz?", + "unable_to_delete_booking": "Rezervasyon silinemedi", + "booking_delete_successfully": "Rezervasyon başarıyla silindi" } \ No newline at end of file diff --git a/apps/web/public/static/locales/uk/common.json b/apps/web/public/static/locales/uk/common.json index 980c6b6db76ae1..08def524f2d1c8 100644 --- a/apps/web/public/static/locales/uk/common.json +++ b/apps/web/public/static/locales/uk/common.json @@ -2952,5 +2952,9 @@ "desc": "За спаданням", "verify_email": "Підтвердити email", "verify_email_change": "Підтвердити зміну електронної пошти", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Видалити історію бронювань", + "delete_history_description": "Ви впевнені, що хочете видалити це з історії бронювань?", + "unable_to_delete_booking": "Не вдалося видалити бронювання", + "booking_delete_successfully": "Бронювання успішно видалено" } \ No newline at end of file diff --git a/apps/web/public/static/locales/vi/common.json b/apps/web/public/static/locales/vi/common.json index 39fe1c9dbb945d..0fd9d411dc7cbc 100644 --- a/apps/web/public/static/locales/vi/common.json +++ b/apps/web/public/static/locales/vi/common.json @@ -2952,5 +2952,9 @@ "desc": "Giảm dần", "verify_email": "Xác thực email", "verify_email_change": "Xác minh thay đổi email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "Xóa lịch sử đặt chỗ", + "delete_history_description": "Bạn có chắc chắn muốn xóa điều này khỏi lịch sử đặt chỗ của mình không?", + "unable_to_delete_booking": "Không thể xóa đặt chỗ", + "booking_delete_successfully": "Đặt chỗ đã được xóa thành công" } \ No newline at end of file diff --git a/apps/web/public/static/locales/zh-CN/common.json b/apps/web/public/static/locales/zh-CN/common.json index e00b70c2e700b3..6b1aa321aa04e5 100644 --- a/apps/web/public/static/locales/zh-CN/common.json +++ b/apps/web/public/static/locales/zh-CN/common.json @@ -2952,5 +2952,9 @@ "desc": "降序", "verify_email": "验证邮箱", "verify_email_change": "验证邮箱变更", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 在此上方添加您的新字符串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 在此上方添加您的新字符串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "删除预订历史", + "delete_history_description": "您确定要从您的预订历史中删除此项吗?", + "unable_to_delete_booking": "无法删除预订", + "booking_delete_successfully": "预订已成功删除" } \ No newline at end of file diff --git a/apps/web/public/static/locales/zh-TW/common.json b/apps/web/public/static/locales/zh-TW/common.json index e51d5e9be055d1..b854b8ca4a376f 100644 --- a/apps/web/public/static/locales/zh-TW/common.json +++ b/apps/web/public/static/locales/zh-TW/common.json @@ -2952,5 +2952,9 @@ "desc": "降序", "verify_email": "驗證電子郵件", "verify_email_change": "驗證電子郵件變更", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 請在此處新增您的字串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 請在此處新增您的字串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", + "delete_history_title": "刪除預訂歷史", + "delete_history_description": "您確定要從您的預訂歷史中刪除此項嗎?", + "unable_to_delete_booking": "無法刪除預訂", + "booking_delete_successfully": "預訂已成功刪除" } \ No newline at end of file diff --git a/packages/trpc/server/routers/viewer/bookings/_router.tsx b/packages/trpc/server/routers/viewer/bookings/_router.tsx index 91cd36ea5414e3..916c3945aa2f09 100644 --- a/packages/trpc/server/routers/viewer/bookings/_router.tsx +++ b/packages/trpc/server/routers/viewer/bookings/_router.tsx @@ -3,6 +3,7 @@ import publicProcedure from "../../../procedures/publicProcedure"; import { router } from "../../../trpc"; import { ZAddGuestsInputSchema } from "./addGuests.schema"; import { ZConfirmInputSchema } from "./confirm.schema"; +import { ZDeleteHistoryInputSchema } from "./deleteHistory.schema"; import { ZEditLocationInputSchema } from "./editLocation.schema"; import { ZFindInputSchema } from "./find.schema"; import { ZGetInputSchema } from "./get.schema"; @@ -16,6 +17,7 @@ type BookingsRouterHandlerCache = { requestReschedule?: typeof import("./requestReschedule.handler").requestRescheduleHandler; editLocation?: typeof import("./editLocation.handler").editLocationHandler; addGuests?: typeof import("./addGuests.handler").addGuestsHandler; + deleteHistory?: typeof import("./deleteHistory.handler").deleteHistoryHandler; confirm?: typeof import("./confirm.handler").confirmHandler; getBookingAttendees?: typeof import("./getBookingAttendees.handler").getBookingAttendeesHandler; find?: typeof import("./find.handler").getHandler; @@ -93,6 +95,25 @@ export const bookingsRouter = router({ input, }); }), + deleteHistory: authedProcedure.input(ZDeleteHistoryInputSchema).mutation(async ({ input, ctx }) => { + if (!UNSTABLE_HANDLER_CACHE.deleteHistory) { + // Dynamically import the deleteHistory handler + UNSTABLE_HANDLER_CACHE.deleteHistory = await import("./deleteHistory.handler").then( + (mod) => mod.deleteHistoryHandler + ); + } + + // Unreachable code but required for type safety + if (!UNSTABLE_HANDLER_CACHE.deleteHistory) { + throw new Error("Failed to load handler"); + } + + // Execute the handler with the context and input + return UNSTABLE_HANDLER_CACHE.deleteHistory({ + ctx, + input, + }); + }), confirm: authedProcedure.input(ZConfirmInputSchema).mutation(async ({ input, ctx }) => { if (!UNSTABLE_HANDLER_CACHE.confirm) { diff --git a/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts b/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts new file mode 100644 index 00000000000000..e7cf14da56c411 --- /dev/null +++ b/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts @@ -0,0 +1,31 @@ +import { prisma } from "@calcom/prisma"; + +import type { TrpcSessionUser } from "../../../trpc"; +import type { TDeleteInputSchema } from "./deleteHistory.schema"; + +type DeleteOptions = { + ctx: { + user: NonNullable; + }; + input: TDeleteInputSchema; +}; + +export const deleteHistoryHandler = async ({ ctx: _ctx, input }: DeleteOptions) => { + const { id } = input; + + await prisma.booking.delete({ + where: { + id, + }, + }); + + await prisma.bookingReference.deleteMany({ + where: { + bookingId: id, + }, + }); + + return { + id, + }; +}; diff --git a/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts b/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts new file mode 100644 index 00000000000000..3eb83d188e899b --- /dev/null +++ b/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts @@ -0,0 +1,7 @@ +import { z } from "zod"; + +export const ZDeleteHistoryInputSchema = z.object({ + id: z.number(), +}); + +export type TDeleteInputSchema = z.infer; From 559639f48cf357d6f5b37d78ae1287b45ffe08da Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Mon, 17 Feb 2025 01:07:44 +0530 Subject: [PATCH 02/12] Remove text variables from other languages --- apps/web/public/static/locales/ar/common.json | 6 +----- apps/web/public/static/locales/az/common.json | 6 +----- apps/web/public/static/locales/bg/common.json | 6 +----- apps/web/public/static/locales/ca/common.json | 6 +----- apps/web/public/static/locales/cs/common.json | 6 +----- apps/web/public/static/locales/da/common.json | 6 +----- apps/web/public/static/locales/de/common.json | 6 +----- apps/web/public/static/locales/el/common.json | 6 +----- apps/web/public/static/locales/es-419/common.json | 6 +----- apps/web/public/static/locales/es/common.json | 6 +----- apps/web/public/static/locales/et/common.json | 6 +----- apps/web/public/static/locales/eu/common.json | 6 +----- apps/web/public/static/locales/fi/common.json | 6 +----- apps/web/public/static/locales/fr/common.json | 6 +----- apps/web/public/static/locales/he/common.json | 6 +----- apps/web/public/static/locales/hr/common.json | 6 +----- apps/web/public/static/locales/hu/common.json | 6 +----- apps/web/public/static/locales/id/common.json | 6 +----- apps/web/public/static/locales/it/common.json | 6 +----- apps/web/public/static/locales/ja/common.json | 6 +----- apps/web/public/static/locales/km/common.json | 6 +----- apps/web/public/static/locales/ko/common.json | 6 +----- apps/web/public/static/locales/lv/common.json | 6 +----- apps/web/public/static/locales/nl/common.json | 6 +----- apps/web/public/static/locales/no/common.json | 6 +----- apps/web/public/static/locales/pl/common.json | 6 +----- apps/web/public/static/locales/pt-BR/common.json | 6 +----- apps/web/public/static/locales/pt/common.json | 6 +----- apps/web/public/static/locales/ro/common.json | 6 +----- apps/web/public/static/locales/ru/common.json | 6 +----- apps/web/public/static/locales/sk-SK/common.json | 6 +----- apps/web/public/static/locales/sk/common.json | 6 +----- apps/web/public/static/locales/sr/common.json | 6 +----- apps/web/public/static/locales/sv/common.json | 6 +----- apps/web/public/static/locales/ta/common.json | 6 +----- apps/web/public/static/locales/tr/common.json | 6 +----- apps/web/public/static/locales/uk/common.json | 6 +----- apps/web/public/static/locales/vi/common.json | 6 +----- apps/web/public/static/locales/zh-CN/common.json | 6 +----- apps/web/public/static/locales/zh-TW/common.json | 6 +----- 40 files changed, 40 insertions(+), 200 deletions(-) diff --git a/apps/web/public/static/locales/ar/common.json b/apps/web/public/static/locales/ar/common.json index 7e752713eea4ce..d71367d62e2eda 100644 --- a/apps/web/public/static/locales/ar/common.json +++ b/apps/web/public/static/locales/ar/common.json @@ -2953,10 +2953,6 @@ "desc": "تنازلي", "verify_email": "التحقق من البريد الإلكتروني", "verify_email_change": "تأكيد تغيير البريد الإلكتروني", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ أضف السلاسل الجديدة أعلاه هنا ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "حذف سجل الحجز", - "delete_history_description": "هل أنت متأكد أنك تريد حذف هذا من سجل الحجز الخاص بك؟", - "unable_to_delete_booking": "تعذر حذف الحجز", - "booking_delete_successfully": "تم حذف الحجز بنجاح" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ أضف السلاسل الجديدة أعلاه هنا ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/az/common.json b/apps/web/public/static/locales/az/common.json index f74d5aca3a01b5..e9c929b55d81bd 100644 --- a/apps/web/public/static/locales/az/common.json +++ b/apps/web/public/static/locales/az/common.json @@ -2953,9 +2953,5 @@ "desc": "Azalan", "verify_email": "E-poçtu təsdiqlə", "verify_email_change": "E-poçt dəyişikliyini təsdiqlə", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni sətirləri bura əlavə edin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Rezervasiya tarixçəsini sil", - "delete_history_description": "Rezervasiya tarixçənizdən bunu silmək istədiyinizə əminsiniz?", - "unable_to_delete_booking": "Rezervasiyanı silmək mümkün olmadı", - "booking_delete_successfully": "Rezervasiya uğurla silindi" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni sətirləri bura əlavə edin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/bg/common.json b/apps/web/public/static/locales/bg/common.json index 1139a89ade0d80..91a434baf6bc16 100644 --- a/apps/web/public/static/locales/bg/common.json +++ b/apps/web/public/static/locales/bg/common.json @@ -2953,9 +2953,5 @@ "desc": "Низх", "verify_email": "Потвърди имейл", "verify_email_change": "Потвърди промяната на имейл", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавете новите си низове над този ред ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Изтриване на историята на резервации", - "delete_history_description": "Сигурни ли сте, че искате да изтриете това от вашата история на резервации?", - "unable_to_delete_booking": "Неуспешно изтриване на резервацията", - "booking_delete_successfully": "Резервацията е изтрита успешно" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавете новите си низове над този ред ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ca/common.json b/apps/web/public/static/locales/ca/common.json index ae3f74dcae6261..3fadf124ba9319 100644 --- a/apps/web/public/static/locales/ca/common.json +++ b/apps/web/public/static/locales/ca/common.json @@ -2953,9 +2953,5 @@ "desc": "Desc", "verify_email": "Verifica el correu", "verify_email_change": "Verifica el canvi de correu electrònic", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Afegiu les vostres noves cadenes a dalt ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Esborrar historial de reserves", - "delete_history_description": "Estàs segur que vols eliminar això del teu historial de reserves?", - "unable_to_delete_booking": "No es pot eliminar la reserva", - "booking_delete_successfully": "Reserva eliminada amb èxit" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Afegiu les vostres noves cadenes a dalt ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/cs/common.json b/apps/web/public/static/locales/cs/common.json index 26cb448603621d..a1467a3cc23fe7 100644 --- a/apps/web/public/static/locales/cs/common.json +++ b/apps/web/public/static/locales/cs/common.json @@ -2953,9 +2953,5 @@ "desc": "Sestupně", "verify_email": "Ověřit e-mail", "verify_email_change": "Ověřit změnu e-mailu", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Přidejte své nové řetězce nahoru ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Smazat historii rezervací", - "delete_history_description": "Jste si jistý, že to chcete smazat ze své historie rezervací?", - "unable_to_delete_booking": "Nelze smazat rezervaci", - "booking_delete_successfully": "Rezervace byla úspěšně smazána" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Přidejte své nové řetězce nahoru ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/da/common.json b/apps/web/public/static/locales/da/common.json index ec2b149cc9f61e..62dcfd09e7fc18 100644 --- a/apps/web/public/static/locales/da/common.json +++ b/apps/web/public/static/locales/da/common.json @@ -2953,9 +2953,5 @@ "desc": "Faldende", "verify_email": "Bekræft e-mail", "verify_email_change": "Bekræft ændring af e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Tilføj dine nye strenge ovenfor her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Slet bookinghistorik", - "delete_history_description": "Er du sikker på, at du vil slette dette fra din bookinghistorik?", - "unable_to_delete_booking": "Kan ikke slette reservation", - "booking_delete_successfully": "Reservationen blev slettet" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Tilføj dine nye strenge ovenfor her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/de/common.json b/apps/web/public/static/locales/de/common.json index ad4a0b027da002..7a9734a9eeea81 100644 --- a/apps/web/public/static/locales/de/common.json +++ b/apps/web/public/static/locales/de/common.json @@ -2953,9 +2953,5 @@ "desc": "Absteigend", "verify_email": "E-Mail verifizieren", "verify_email_change": "E-Mail-Änderung bestätigen", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Fügen Sie Ihre neuen Code-Zeilen über dieser hinzu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Buchungshistorie löschen", - "delete_history_description": "Sind Sie sicher, dass Sie dies aus Ihrer Buchungshistorie löschen möchten?", - "unable_to_delete_booking": "Buchung konnte nicht gelöscht werden", - "booking_delete_successfully": "Buchung erfolgreich gelöscht" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Fügen Sie Ihre neuen Code-Zeilen über dieser hinzu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/el/common.json b/apps/web/public/static/locales/el/common.json index 5d00cf0cb898be..4239529df0aa86 100644 --- a/apps/web/public/static/locales/el/common.json +++ b/apps/web/public/static/locales/el/common.json @@ -2953,9 +2953,5 @@ "desc": "Φθίνουσα", "verify_email": "Επαλήθευση email", "verify_email_change": "Επαλήθευση αλλαγής email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Προσθέστε τις νέες συμβολοσειρές σας πάνω από εδώ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Διαγραφή ιστορικού κρατήσεων", - "delete_history_description": "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό από το ιστορικό κρατήσεών σας;", - "unable_to_delete_booking": "Δεν είναι δυνατή η διαγραφή της κράτησης", - "booking_delete_successfully": "Η κράτηση διαγράφηκε με επιτυχία" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Προσθέστε τις νέες συμβολοσειρές σας πάνω από εδώ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/es-419/common.json b/apps/web/public/static/locales/es-419/common.json index 44c6161a278480..28ba3b8ddf5706 100644 --- a/apps/web/public/static/locales/es-419/common.json +++ b/apps/web/public/static/locales/es-419/common.json @@ -2953,9 +2953,5 @@ "desc": "Desc", "verify_email": "Verificar correo", "verify_email_change": "Verificar cambio de correo electrónico", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agrega tus nuevas cadenas arriba de esta línea ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Eliminar historial de reservas", - "delete_history_description": "¿Seguro que quieres eliminar esto de tu historial de reservas?", - "unable_to_delete_booking": "No se puede borrar la reserva", - "booking_delete_successfully": "Reserva eliminada exitosamente" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agrega tus nuevas cadenas arriba de esta línea ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/es/common.json b/apps/web/public/static/locales/es/common.json index 03fe5be3479afc..b4fed8cf272532 100644 --- a/apps/web/public/static/locales/es/common.json +++ b/apps/web/public/static/locales/es/common.json @@ -2953,9 +2953,5 @@ "desc": "Desc", "verify_email": "Verificar correo", "verify_email_change": "Verificar cambio de correo electrónico", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agregue sus nuevas cadenas arriba ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Eliminar historial de reservas", - "delete_history_description": "¿Estás seguro de que quieres eliminar esto de tu historial de reservas?", - "unable_to_delete_booking": "No se puede eliminar la reserva", - "booking_delete_successfully": "Reserva eliminada con éxito" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Agregue sus nuevas cadenas arriba ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/et/common.json b/apps/web/public/static/locales/et/common.json index 2ccf9628f43f5e..bd38c1cb59d6ec 100644 --- a/apps/web/public/static/locales/et/common.json +++ b/apps/web/public/static/locales/et/common.json @@ -2953,9 +2953,5 @@ "desc": "Kahanev", "verify_email": "Kinnita e-post", "verify_email_change": "Kinnita e-posti aadressi muutmine", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Kustuta broneeringute ajalugu", - "delete_history_description": "Kas olete kindel, et soovite selle oma broneeringu ajaloost kustutada?", - "unable_to_delete_booking": "Broneeringu kustutamine ebaõnnestus", - "booking_delete_successfully": "Broneering on edukalt kustutatud" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/eu/common.json b/apps/web/public/static/locales/eu/common.json index c873cbc8cb64e6..6cb2e5549fb85c 100644 --- a/apps/web/public/static/locales/eu/common.json +++ b/apps/web/public/static/locales/eu/common.json @@ -2953,9 +2953,5 @@ "desc": "Beherantz", "verify_email": "Egiaztatu emaila", "verify_email_change": "Egiaztatu posta elektronikoaren aldaketa", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Gehitu zure kate berriak honen gainean ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Ezabatu erreserben historia", - "delete_history_description": "Ziur zaude hau zure erreserba-historiatik ezabatu nahi duzula?", - "unable_to_delete_booking": "Ezin da erreserba ezabatu", - "booking_delete_successfully": "Erreserba ongi ezabatu da" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Gehitu zure kate berriak honen gainean ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/fi/common.json b/apps/web/public/static/locales/fi/common.json index 13eb5770ab5a04..f7f89126b0f3d7 100644 --- a/apps/web/public/static/locales/fi/common.json +++ b/apps/web/public/static/locales/fi/common.json @@ -2953,9 +2953,5 @@ "desc": "Laskeva", "verify_email": "Vahvista sähköposti", "verify_email_change": "Vahvista sähköpostin muutos", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Lisää uudet merkkijonot tämän yläpuolelle ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Poista varauksen historia", - "delete_history_description": "Oletko varma, että haluat poistaa tämän varaus historiastasi?", - "unable_to_delete_booking": "Varausta ei voi poistaa", - "booking_delete_successfully": "Varaus poistettu onnistuneesti" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Lisää uudet merkkijonot tämän yläpuolelle ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/fr/common.json b/apps/web/public/static/locales/fr/common.json index 37ed52e7c30467..59b5d0d9035f6a 100644 --- a/apps/web/public/static/locales/fr/common.json +++ b/apps/web/public/static/locales/fr/common.json @@ -2953,9 +2953,5 @@ "desc": "Desc", "verify_email": "Vérifier l'e-mail", "verify_email_change": "Vérifier le changement d'e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Ajoutez vos nouvelles chaînes ci-dessus ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Supprimer l'historique des réservations", - "delete_history_description": "Êtes-vous sûr de vouloir supprimer ceci de votre historique de réservation ?", - "unable_to_delete_booking": "Impossible de supprimer la réservation", - "booking_delete_successfully": "Réservation supprimée avec succès" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Ajoutez vos nouvelles chaînes ci-dessus ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/he/common.json b/apps/web/public/static/locales/he/common.json index 47840e7e68990e..d048271afa2de5 100644 --- a/apps/web/public/static/locales/he/common.json +++ b/apps/web/public/static/locales/he/common.json @@ -2953,10 +2953,6 @@ "desc": "סדר יורד", "verify_email": "אימות אימייל", "verify_email_change": "אימות שינוי כתובת דוא\"ל", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "מחיקת היסטוריית הזמנות", - "delete_history_description": "האם אתה בטוח שברצונך למחוק זאת מהיסטוריית ההזמנות שלך?", - "unable_to_delete_booking": "לא ניתן למחוק את ההזמנה", - "booking_delete_successfully": "ההזמנה נמחקה בהצלחה" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/hr/common.json b/apps/web/public/static/locales/hr/common.json index 2323092b691804..3e46418caf9a09 100644 --- a/apps/web/public/static/locales/hr/common.json +++ b/apps/web/public/static/locales/hr/common.json @@ -444,9 +444,5 @@ "ooo_select_reason": "Odaberi razlog", "enterprise_license_locally": "Možete testirati ovu značajku lokalno, ali ne u proizvodnji.", "enterprise_license_sales": "Da biste se nadogradili na poslovnu verziju, obratite se našem timu za prodaju. Ako je već licencni ključ na mjestu, kontaktirajte support@cal.com za pomoć.", - "apply_to_all_event_types": "Primjenjuje se na sve, uključujući buduće vrste događaja", - "delete_history_title": "Izbriši povijest rezervacija", - "delete_history_description": "Jeste li sigurni da želite izbrisati ovo iz svoje povijesti rezervacija?", - "unable_to_delete_booking": "Nemoguće izbrisati rezervaciju", - "booking_delete_successfully": "Rezervacija uspješno izbrisana" + "apply_to_all_event_types": "Primjenjuje se na sve, uključujući buduće vrste događaja" } diff --git a/apps/web/public/static/locales/hu/common.json b/apps/web/public/static/locales/hu/common.json index eb912c163a4f79..da6a7c7b6d4b5e 100644 --- a/apps/web/public/static/locales/hu/common.json +++ b/apps/web/public/static/locales/hu/common.json @@ -2953,9 +2953,5 @@ "desc": "Csökkenő", "verify_email": "E-mail megerősítése", "verify_email_change": "E-mail-cím módosításának megerősítése", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adja hozzá az új karakterláncokat fent ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Foglalási előzmények törlése", - "delete_history_description": "Biztosan törölni szeretné ezt a foglalási előzményeiből?", - "unable_to_delete_booking": "Nem sikerült törölni a foglalást", - "booking_delete_successfully": "A foglalás sikeresen törölve" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adja hozzá az új karakterláncokat fent ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/id/common.json b/apps/web/public/static/locales/id/common.json index c73a2c7bfc7b54..84481ec5097145 100644 --- a/apps/web/public/static/locales/id/common.json +++ b/apps/web/public/static/locales/id/common.json @@ -154,9 +154,5 @@ "ooo_select_reason": "Pilih alasan", "enterprise_license_locally": "Anda dapat menguji fitur ini secara lokal tetapi tidak pada produksi.", "enterprise_license_sales": "Untuk meningkatkan ke edisi perusahaan, hubungi tim penjualan kami. Jika kunci lisensi sudah ada, hubungi support@cal.com untuk bantuan.", - "apply_to_all_event_types": "Terapkan untuk semua, termasuk jenis acara di masa depan", - "delete_history_title": "Hapus riwayat pemesanan", - "delete_history_description": "Apakah Anda yakin ingin menghapus ini dari riwayat pemesanan Anda?", - "unable_to_delete_booking": "Tidak dapat menghapus pemesanan", - "booking_delete_successfully": "Pemesanan berhasil dihapus" + "apply_to_all_event_types": "Terapkan untuk semua, termasuk jenis acara di masa depan" } diff --git a/apps/web/public/static/locales/it/common.json b/apps/web/public/static/locales/it/common.json index 86abc894a9b490..ed0fd0f5310a19 100644 --- a/apps/web/public/static/locales/it/common.json +++ b/apps/web/public/static/locales/it/common.json @@ -2953,10 +2953,6 @@ "desc": "Decrescente", "verify_email": "Verifica email", "verify_email_change": "Verifica la modifica dell'email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Aggiungi le tue nuove stringhe qui sopra ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Elimina cronologia prenotazioni", - "delete_history_description": "Sei sicuro di voler eliminare questo dalla tua cronologia delle prenotazioni?", - "unable_to_delete_booking": "Impossibile eliminare la prenotazione", - "booking_delete_successfully": "Prenotazione eliminata con successo" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Aggiungi le tue nuove stringhe qui sopra ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ja/common.json b/apps/web/public/static/locales/ja/common.json index 5a769c9ffce88b..00e04fdf80dff5 100644 --- a/apps/web/public/static/locales/ja/common.json +++ b/apps/web/public/static/locales/ja/common.json @@ -2953,10 +2953,6 @@ "desc": "降順", "verify_email": "メールアドレスを確認", "verify_email_change": "メールアドレスの変更を確認", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ この上に新しい文字列を追加してください ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "予約履歴を削除", - "delete_history_description": "予約履歴からこれを削除してもよろしいですか?", - "unable_to_delete_booking": "予約を削除できません", - "booking_delete_successfully": "予約が正常に削除されました" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ この上に新しい文字列を追加してください ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/km/common.json b/apps/web/public/static/locales/km/common.json index 3fb546acfc17cd..061d1832382da0 100644 --- a/apps/web/public/static/locales/km/common.json +++ b/apps/web/public/static/locales/km/common.json @@ -2953,9 +2953,5 @@ "desc": "ចុះ", "verify_email": "ផ្ទៀងផ្ទាត់អ៊ីមែល", "verify_email_change": "ផ្ទៀងផ្ទាត់ការផ្លាស់ប្តូរអ៊ីមែល", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ បន្ថែមខ្សែអក្សរថ្មីរបស់អ្នកនៅខាងលើនេះ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "លុបប្រវត្តិការកក់", - "delete_history_description": "តើអ្នកប្រាកដថាចង់លុបវាចេញពីប្រវត្តិការកក់របស់អ្នកឬ?", - "unable_to_delete_booking": "មិនអាចលុបការកក់បានទេ", - "booking_delete_successfully": "ការកក់ត្រូវបានលុបដោយជោគជ័យ" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ បន្ថែមខ្សែអក្សរថ្មីរបស់អ្នកនៅខាងលើនេះ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ko/common.json b/apps/web/public/static/locales/ko/common.json index 7c14ac810398cb..986f2ef8f1f60b 100644 --- a/apps/web/public/static/locales/ko/common.json +++ b/apps/web/public/static/locales/ko/common.json @@ -2953,9 +2953,5 @@ "desc": "내림차순", "verify_email": "이메일 인증", "verify_email_change": "이메일 변경 확인", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 여기에 새 문자열을 추가하세요 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "예약 기록 삭제", - "delete_history_description": "예약 기록에서 이것을 삭제하시겠습니까?", - "unable_to_delete_booking": "예약을 삭제할 수 없습니다", - "booking_delete_successfully": "예약이 성공적으로 삭제되었습니다" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 여기에 새 문자열을 추가하세요 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/lv/common.json b/apps/web/public/static/locales/lv/common.json index 90aca5d67dffd9..7ebbd2cf06450c 100644 --- a/apps/web/public/static/locales/lv/common.json +++ b/apps/web/public/static/locales/lv/common.json @@ -151,9 +151,5 @@ "ooo_select_reason": "Izvēlieties iemeslu", "enterprise_license_locally": "Jūs varat testēt šo funkciju vietēji, bet ne ražošanas vidē.", "enterprise_license_sales": "Lai uzlabotu uz uzņēmuma izdevumu, lūdzu, sazinieties ar mūsu pārdošanas komandu. Ja licences atslēga jau ir, lūdzu, sazinieties ar support@cal.com uz palīdzību.", - "apply_to_all_event_types": "Piemēroties visiem, ieskaitot arī nākotnes notikumu veidus", - "delete_history_title": "Dzēst rezervācijas vēsturi", - "delete_history_description": "Vai esat pārliecināts, ka vēlaties to dzēst no savas rezervāciju vēstures?", - "unable_to_delete_booking": "Nevar izdzēst rezervāciju", - "booking_delete_successfully": "Rezervācija veiksmīgi izdzēsta" + "apply_to_all_event_types": "Piemēroties visiem, ieskaitot arī nākotnes notikumu veidus" } diff --git a/apps/web/public/static/locales/nl/common.json b/apps/web/public/static/locales/nl/common.json index 32ccf93dd6f045..9d716b588c2b76 100644 --- a/apps/web/public/static/locales/nl/common.json +++ b/apps/web/public/static/locales/nl/common.json @@ -2953,9 +2953,5 @@ "desc": "Aflopend", "verify_email": "E-mail verifiëren", "verify_email_change": "Verifieer e-mailwijziging", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Voeg uw nieuwe strings hierboven toe ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Boekingsgeschiedenis verwijderen", - "delete_history_description": "Weet je zeker dat je dit uit je boekingsgeschiedenis wilt verwijderen?", - "unable_to_delete_booking": "Kan reservering niet verwijderen", - "booking_delete_successfully": "Reservering succesvol verwijderd" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Voeg uw nieuwe strings hierboven toe ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/no/common.json b/apps/web/public/static/locales/no/common.json index ab76136cdb7935..5572b99da2f9b7 100644 --- a/apps/web/public/static/locales/no/common.json +++ b/apps/web/public/static/locales/no/common.json @@ -2953,9 +2953,5 @@ "desc": "Synkende", "verify_email": "Bekreft e-post", "verify_email_change": "Bekreft endring av e-post", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Legg til dine nye strenger over her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Slett bestillingshistorikk", - "delete_history_description": "Er du sikker på at du vil slette dette fra din bestillingshistorikk?", - "unable_to_delete_booking": "Kan ikke slette bestillingen", - "booking_delete_successfully": "Bestillingen ble slettet" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Legg til dine nye strenger over her ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pl/common.json b/apps/web/public/static/locales/pl/common.json index 0b11e8f645af42..6da50910105e7b 100644 --- a/apps/web/public/static/locales/pl/common.json +++ b/apps/web/public/static/locales/pl/common.json @@ -2953,9 +2953,5 @@ "desc": "Malejąco", "verify_email": "Zweryfikuj email", "verify_email_change": "Zweryfikuj zmianę adresu email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodaj nowe ciągi powyżej ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Usuń historię rezerwacji", - "delete_history_description": "Czy na pewno chcesz usunąć to ze swojej historii rezerwacji?", - "unable_to_delete_booking": "Nie można usunąć rezerwacji", - "booking_delete_successfully": "Rezerwacja została pomyślnie usunięta" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodaj nowe ciągi powyżej ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pt-BR/common.json b/apps/web/public/static/locales/pt-BR/common.json index 8d99b128eb8877..8a8a21252f1594 100644 --- a/apps/web/public/static/locales/pt-BR/common.json +++ b/apps/web/public/static/locales/pt-BR/common.json @@ -2953,9 +2953,5 @@ "desc": "Decrescente", "verify_email": "Verificar e-mail", "verify_email_change": "Verificar alteração de e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adicione suas novas strings aqui em cima ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Excluir histórico de reservas", - "delete_history_description": "Tem certeza de que deseja excluir isto do seu histórico de reservas?", - "unable_to_delete_booking": "Não foi possível excluir a reserva", - "booking_delete_successfully": "Reserva excluída com sucesso" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adicione suas novas strings aqui em cima ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/pt/common.json b/apps/web/public/static/locales/pt/common.json index 13fcb22b5f8453..863436266b0cef 100644 --- a/apps/web/public/static/locales/pt/common.json +++ b/apps/web/public/static/locales/pt/common.json @@ -2953,9 +2953,5 @@ "desc": "Decrescente", "verify_email": "Verificar e-mail", "verify_email_change": "Verificar alteração de e-mail", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Eliminar histórico de reservas", - "delete_history_description": "Tem a certeza de que deseja eliminar isto do seu histórico de reservas?", - "unable_to_delete_booking": "Não foi possível eliminar a reserva", - "booking_delete_successfully": "Reserva eliminada com sucesso" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ro/common.json b/apps/web/public/static/locales/ro/common.json index 18dad47c8c4d49..b576f195b3ca4c 100644 --- a/apps/web/public/static/locales/ro/common.json +++ b/apps/web/public/static/locales/ro/common.json @@ -2953,9 +2953,5 @@ "desc": "Descrescător", "verify_email": "Verifică email-ul", "verify_email_change": "Verifică schimbarea adresei de email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adăugați stringurile noi deasupra acestui rând ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Șterge istoricul rezervărilor", - "delete_history_description": "Ești sigur că vrei să ștergi acest lucru din istoricul tău de rezervări?", - "unable_to_delete_booking": "Nu s-a putut șterge rezervarea", - "booking_delete_successfully": "Rezervarea a fost ștearsă cu succes" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Adăugați stringurile noi deasupra acestui rând ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ru/common.json b/apps/web/public/static/locales/ru/common.json index 74270816753a6e..f4574c2beaa7ff 100644 --- a/apps/web/public/static/locales/ru/common.json +++ b/apps/web/public/static/locales/ru/common.json @@ -2953,9 +2953,5 @@ "desc": "По убыванию", "verify_email": "Подтвердить email", "verify_email_change": "Подтвердить изменение email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавьте строки выше ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Удалить историю бронирований", - "delete_history_description": "Вы уверены, что хотите удалить это из своей истории бронирований?", - "unable_to_delete_booking": "Не удалось удалить бронирование", - "booking_delete_successfully": "Бронирование успешно удалено" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Добавьте строки выше ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sk-SK/common.json b/apps/web/public/static/locales/sk-SK/common.json index 939e4c8b2b2793..e0059d2564faa1 100644 --- a/apps/web/public/static/locales/sk-SK/common.json +++ b/apps/web/public/static/locales/sk-SK/common.json @@ -2953,9 +2953,5 @@ "desc": "Zostupne", "verify_email": "Overiť email", "verify_email_change": "Overiť zmenu e-mailu", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Pridajte svoje nové reťazce nad túto líniu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Odstrániť históriu rezervácií", - "delete_history_description": "Ste si istí, že to chcete odstrániť z histórie rezervácií?", - "unable_to_delete_booking": "Nie je možné odstrániť rezerváciu", - "booking_delete_successfully": "Rezervácia bola úspešne odstránená" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Pridajte svoje nové reťazce nad túto líniu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sk/common.json b/apps/web/public/static/locales/sk/common.json index 65d949f54d91b0..e55a08e5be7349 100644 --- a/apps/web/public/static/locales/sk/common.json +++ b/apps/web/public/static/locales/sk/common.json @@ -55,9 +55,5 @@ "ooo_select_reason": "Vybrať dôvod", "enterprise_license_locally": "Túto funkciu môžete otestovať lokálne, ale nie v produkčnom prostredí.", "enterprise_license_sales": "Na upgradovanie na podnikateľskú verziu kontaktujte náš obchodný tím. Ak už je licenčný kľúč na mieste, kontaktujte support@cal.com pre pomoc.", - "apply_to_all_event_types": "Platí pre všetky, vrátane budúcich typov udalostí", - "delete_history_title": "Odstrániť históriu rezervácií", - "delete_history_description": "Ste si istí, že to chcete odstrániť z histórie rezervácií?", - "unable_to_delete_booking": "Nie je možné odstrániť rezerváciu", - "booking_delete_successfully": "Rezervácia bola úspešne odstránená" + "apply_to_all_event_types": "Platí pre všetky, vrátane budúcich typov udalostí" } diff --git a/apps/web/public/static/locales/sr/common.json b/apps/web/public/static/locales/sr/common.json index 3f1c8411e11551..8f97359a2e72bb 100644 --- a/apps/web/public/static/locales/sr/common.json +++ b/apps/web/public/static/locales/sr/common.json @@ -2953,9 +2953,5 @@ "desc": "Opadajuće", "verify_email": "Potvrdi email", "verify_email_change": "Potvrdi promenu email adrese", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodajte svoje nove stringove iznad ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Избришите историју резервација", - "delete_history_description": "Да ли сте сигурни да желите да избришете ово из своје историје резервација?", - "unable_to_delete_booking": "Nije moguće obrisati rezervaciju", - "booking_delete_successfully": "Rezervacija je uspešno obrisana" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Dodajte svoje nove stringove iznad ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/sv/common.json b/apps/web/public/static/locales/sv/common.json index 425e154a1a2048..80c6f5c178a2b9 100644 --- a/apps/web/public/static/locales/sv/common.json +++ b/apps/web/public/static/locales/sv/common.json @@ -2953,9 +2953,5 @@ "desc": "Fallande", "verify_email": "Verifiera e-post", "verify_email_change": "Verifiera ändring av e-postadress", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Radera bokningshistorik", - "delete_history_description": "Är du säker på att du vill radera detta från din bokningshistorik?", - "unable_to_delete_booking": "Det går inte att ta bort bokningen", - "booking_delete_successfully": "Bokningen har tagits bort" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/ta/common.json b/apps/web/public/static/locales/ta/common.json index 87dc6bf3ea1a31..22e8ab36a139de 100644 --- a/apps/web/public/static/locales/ta/common.json +++ b/apps/web/public/static/locales/ta/common.json @@ -199,9 +199,5 @@ "ooo_select_reason": "காரணம் தேர்ந்தெடு", "enterprise_license_locally": "இந்த சாதனையை நீங்கள் உள்ளூரில் சோதிக்கலாம் ஆனால் தயாரிப்பில் இல்லை.", "enterprise_license_sales": "பணியில் பதிவேற்றம் செய்து தொழில் பதிப்பிற்கு மாற்றுங்கள் என்றால் எங்கள் விற்பனை குழுவுடன் தொடர்பு கொள்ளுங்கள். ஒரு உரிமை முக்கிய தொடர்பு ஏற்கனவே உள்ளது என்றால் support@cal.com க்கு தொடர்பு கொள்ளுங்கள் உதவிக்கு.", - "apply_to_all_event_types": "எல்லா நிகழ்வுகள் தொடர்புகளிலும் பயன்படுத்துங்கள், எதிர்கால நிகழ்வுகள் தொடர்புகள் உட்பட.", - "delete_history_title": "முன்பதிவு வரலாற்றை நீக்கு", - "delete_history_description": "உங்கள் முன்பதிவு வரலாற்றிலிருந்து இதை நீக்க விரும்புகிறீர்களா?", - "unable_to_delete_booking": "முன்பதிவை நீக்க முடியவில்லை", - "booking_delete_successfully": "முன்பதிவு வெற்றிகரமாக நீக்கப்பட்டது" + "apply_to_all_event_types": "எல்லா நிகழ்வுகள் தொடர்புகளிலும் பயன்படுத்துங்கள், எதிர்கால நிகழ்வுகள் தொடர்புகள் உட்பட." } diff --git a/apps/web/public/static/locales/tr/common.json b/apps/web/public/static/locales/tr/common.json index 3bb559c595ed82..74a1604e799d0e 100644 --- a/apps/web/public/static/locales/tr/common.json +++ b/apps/web/public/static/locales/tr/common.json @@ -2953,9 +2953,5 @@ "desc": "Azalan", "verify_email": "E-posta doğrula", "verify_email_change": "E-posta değişikliğini doğrula", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni dizelerinizi yukarıya ekleyin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Rezervasyon geçmişini sil", - "delete_history_description": "Bunu rezervasyon geçmişinizden silmek istediğinize emin misiniz?", - "unable_to_delete_booking": "Rezervasyon silinemedi", - "booking_delete_successfully": "Rezervasyon başarıyla silindi" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Yeni dizelerinizi yukarıya ekleyin ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/uk/common.json b/apps/web/public/static/locales/uk/common.json index f1e2e0cd227254..8f89424a161589 100644 --- a/apps/web/public/static/locales/uk/common.json +++ b/apps/web/public/static/locales/uk/common.json @@ -2953,9 +2953,5 @@ "desc": "За спаданням", "verify_email": "Підтвердити email", "verify_email_change": "Підтвердити зміну електронної пошти", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Видалити історію бронювань", - "delete_history_description": "Ви впевнені, що хочете видалити це з історії бронювань?", - "unable_to_delete_booking": "Не вдалося видалити бронювання", - "booking_delete_successfully": "Бронювання успішно видалено" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/vi/common.json b/apps/web/public/static/locales/vi/common.json index b84baa82ebb432..5bad6df40ea602 100644 --- a/apps/web/public/static/locales/vi/common.json +++ b/apps/web/public/static/locales/vi/common.json @@ -2953,9 +2953,5 @@ "desc": "Giảm dần", "verify_email": "Xác thực email", "verify_email_change": "Xác minh thay đổi email", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Xóa lịch sử đặt chỗ", - "delete_history_description": "Bạn có chắc chắn muốn xóa điều này khỏi lịch sử đặt chỗ của mình không?", - "unable_to_delete_booking": "Không thể xóa đặt chỗ", - "booking_delete_successfully": "Đặt chỗ đã được xóa thành công" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/zh-CN/common.json b/apps/web/public/static/locales/zh-CN/common.json index 78bf5acc5b0172..a4672941954743 100644 --- a/apps/web/public/static/locales/zh-CN/common.json +++ b/apps/web/public/static/locales/zh-CN/common.json @@ -2953,9 +2953,5 @@ "desc": "降序", "verify_email": "验证邮箱", "verify_email_change": "验证邮箱变更", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 在此上方添加您的新字符串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "删除预订历史", - "delete_history_description": "您确定要从您的预订历史中删除此项吗?", - "unable_to_delete_booking": "无法删除预订", - "booking_delete_successfully": "预订已成功删除" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 在此上方添加您的新字符串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file diff --git a/apps/web/public/static/locales/zh-TW/common.json b/apps/web/public/static/locales/zh-TW/common.json index 823e5095265384..70e13138fac076 100644 --- a/apps/web/public/static/locales/zh-TW/common.json +++ b/apps/web/public/static/locales/zh-TW/common.json @@ -2953,9 +2953,5 @@ "desc": "降序", "verify_email": "驗證電子郵件", "verify_email_change": "驗證電子郵件變更", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 請在此處新增您的字串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "刪除預訂歷史", - "delete_history_description": "您確定要從您的預訂歷史中刪除此項嗎?", - "unable_to_delete_booking": "無法刪除預訂", - "booking_delete_successfully": "預訂已成功刪除" + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ 請在此處新增您的字串 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } \ No newline at end of file From ad1863145a215e2889281b12f69899464669b238 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Mon, 17 Feb 2025 01:39:07 +0530 Subject: [PATCH 03/12] add handler whwere offer seats case is handled --- .../server/routers/viewer/bookings/deleteHistory.handler.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts b/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts index e7cf14da56c411..d2140d5e51d0c8 100644 --- a/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts +++ b/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts @@ -19,6 +19,12 @@ export const deleteHistoryHandler = async ({ ctx: _ctx, input }: DeleteOptions) }, }); + await prisma.bookingSeat.deleteMany({ + where: { + bookingId: id, + }, + }); + await prisma.bookingReference.deleteMany({ where: { bookingId: id, From d49bf0d6f523d9360ce8102034b204332dad3b21 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Mon, 17 Feb 2025 17:00:43 +0530 Subject: [PATCH 04/12] update changes according to PR feedback --- .../components/booking/BookingListItem.tsx | 12 ++-- .../components/dialog/DeleteHistoryDialog.tsx | 68 ------------------- .../components/dialog/DeleteBookingDialog.tsx | 46 +++++++++++++ .../event-types/hooks/useEventTypeForm.ts | 1 + .../routers/viewer/bookings/_router.tsx | 18 ++--- .../viewer/bookings/deleteBooking.handler.ts | 26 +++++++ .../viewer/bookings/deleteBooking.schema.ts | 7 ++ .../viewer/bookings/deleteHistory.handler.ts | 37 ---------- .../viewer/bookings/deleteHistory.schema.ts | 7 -- 9 files changed, 95 insertions(+), 127 deletions(-) delete mode 100644 apps/web/components/dialog/DeleteHistoryDialog.tsx create mode 100644 packages/features/bookings/components/dialog/DeleteBookingDialog.tsx create mode 100644 packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts create mode 100644 packages/trpc/server/routers/viewer/bookings/deleteBooking.schema.ts delete mode 100644 packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts delete mode 100644 packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 53839dd8c2d872..ff1046f64a4e58 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -8,6 +8,7 @@ import { getSuccessPageLocationMessage, guessEventLocationType } from "@calcom/a import dayjs from "@calcom/dayjs"; // TODO: Use browser locale, implement Intl in Dayjs maybe? import "@calcom/dayjs/locales"; +import { DeleteBookingDialog } from "@calcom/features/bookings/components/dialog/DeleteBookingDialog"; import ViewRecordingsDialog from "@calcom/features/ee/video/ViewRecordingsDialog"; import classNames from "@calcom/lib/classNames"; import { formatTime } from "@calcom/lib/date-fns"; @@ -51,7 +52,6 @@ import assignmentReasonBadgeTitleMap from "@lib/booking/assignmentReasonBadgeTit import { AddGuestsDialog } from "@components/dialog/AddGuestsDialog"; import { ChargeCardDialog } from "@components/dialog/ChargeCardDialog"; -import DeleteHistoryDialog from "@components/dialog/DeleteHistoryDialog"; import { EditLocationDialog } from "@components/dialog/EditLocationDialog"; import { ReassignDialog } from "@components/dialog/ReassignDialog"; import { RerouteDialog } from "@components/dialog/RerouteDialog"; @@ -297,7 +297,7 @@ function BookingListItem(booking: BookingItemProps) { id: "delete_history", label: t("delete_history_title"), onClick: () => { - setIsOpenDeleteHistoryDialog(true); + setIsOpenDeleteBookingDialog(true); }, icon: "trash" as const, color: "destructive", @@ -360,7 +360,7 @@ function BookingListItem(booking: BookingItemProps) { const [isOpenSetLocationDialog, setIsOpenLocationDialog] = useState(false); const [isOpenAddGuestsDialog, setIsOpenAddGuestsDialog] = useState(false); const [rerouteDialogIsOpen, setRerouteDialogIsOpen] = useState(false); - const [isOpenDeleteHistoryDialog, setIsOpenDeleteHistoryDialog] = useState(false); + const [isOpenDeleteBookingDialog, setIsOpenDeleteBookingDialog] = useState(false); const setLocationMutation = trpc.viewer.bookings.editLocation.useMutation({ onSuccess: () => { showToast(t("location_updated"), "success"); @@ -475,9 +475,9 @@ function BookingListItem(booking: BookingItemProps) { setIsOpenDialog={setIsOpenAddGuestsDialog} bookingId={booking.id} /> - {booking.paid && booking.payment[0] && ( diff --git a/apps/web/components/dialog/DeleteHistoryDialog.tsx b/apps/web/components/dialog/DeleteHistoryDialog.tsx deleted file mode 100644 index 1230f18759bbc4..00000000000000 --- a/apps/web/components/dialog/DeleteHistoryDialog.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import type { Dispatch, SetStateAction } from "react"; - -import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { trpc } from "@calcom/trpc"; -import { Button, Dialog, DialogContent, DialogFooter, DialogHeader, Icon } from "@calcom/ui"; -import { showToast } from "@calcom/ui"; - -interface IDeleteHistoryDialog { - isOpenDialog: boolean; - setIsOpenDialog: Dispatch>; - bookingId: number; -} - -const DeleteHistoryDialog = (props: IDeleteHistoryDialog) => { - const { t } = useLocale(); - const { isOpenDialog, setIsOpenDialog, bookingId } = props; - const utils = trpc.useUtils(); - - const deleteHistoryBookingMutation = trpc.viewer.bookings.deleteHistory.useMutation({ - onSuccess: async () => { - showToast(t("booking_delete_successfully"), "success"); - setIsOpenDialog(false); - utils.viewer.bookings.invalidate(); - }, - onError: (err) => { - const message = `${err.data?.code}: ${t(err.message)}`; - showToast(message || t("unable_to_delete_booking"), "error"); - }, - }); - - const handleDelete = () => { - deleteHistoryBookingMutation.mutate({ id: bookingId }); - }; - - return ( - - -
-
- -
-
- -

{t("delete_history_description")}

- - - - -
-
-
-
- ); -}; - -export default DeleteHistoryDialog; diff --git a/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx b/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx new file mode 100644 index 00000000000000..4559cb7b1dc789 --- /dev/null +++ b/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx @@ -0,0 +1,46 @@ +import type { Dispatch, SetStateAction } from "react"; + +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { trpc } from "@calcom/trpc"; +import { ConfirmationDialogContent, Dialog } from "@calcom/ui"; +import { showToast } from "@calcom/ui"; + +interface IDeleteBookingDialog { + isOpenDialog: boolean; + setIsOpenDialog: Dispatch>; + bookingId: number; +} + +export const DeleteBookingDialog = (props: IDeleteBookingDialog) => { + const { t } = useLocale(); + const { isOpenDialog, setIsOpenDialog, bookingId } = props; + const utils = trpc.useUtils(); + + const deleteBookingMutation = trpc.viewer.bookings.deleteBooking.useMutation({ + onSuccess: async () => { + showToast(t("booking_delete_successfully"), "success"); + setIsOpenDialog(false); + utils.viewer.bookings.invalidate(); + }, + onError: (err) => { + const message = `${err.data?.code}: ${t(err.message)}`; + showToast(message || t("unable_to_delete_booking"), "error"); + }, + }); + + return ( + + { + e.preventDefault(); + deleteBookingMutation.mutate({ id: bookingId }); + }}> + {t("delete_history_description")} + + + ); +}; diff --git a/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts b/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts index 4c5f22bced3dd4..a6b3a6392f8679 100644 --- a/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts +++ b/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts @@ -263,6 +263,7 @@ export const useEventTypeForm = ({ }; const handleSubmit = async (values: FormValues) => { + console.log("handlesubmit invoked!"); const { children } = values; const dirtyValues = getDirtyFields(values); const dirtyFieldExists = Object.keys(dirtyValues).length !== 0; diff --git a/packages/trpc/server/routers/viewer/bookings/_router.tsx b/packages/trpc/server/routers/viewer/bookings/_router.tsx index 916c3945aa2f09..b4d39bfdb65db7 100644 --- a/packages/trpc/server/routers/viewer/bookings/_router.tsx +++ b/packages/trpc/server/routers/viewer/bookings/_router.tsx @@ -3,7 +3,7 @@ import publicProcedure from "../../../procedures/publicProcedure"; import { router } from "../../../trpc"; import { ZAddGuestsInputSchema } from "./addGuests.schema"; import { ZConfirmInputSchema } from "./confirm.schema"; -import { ZDeleteHistoryInputSchema } from "./deleteHistory.schema"; +import { ZDeleteBookingInputSchema } from "./deleteBooking.schema"; import { ZEditLocationInputSchema } from "./editLocation.schema"; import { ZFindInputSchema } from "./find.schema"; import { ZGetInputSchema } from "./get.schema"; @@ -17,7 +17,7 @@ type BookingsRouterHandlerCache = { requestReschedule?: typeof import("./requestReschedule.handler").requestRescheduleHandler; editLocation?: typeof import("./editLocation.handler").editLocationHandler; addGuests?: typeof import("./addGuests.handler").addGuestsHandler; - deleteHistory?: typeof import("./deleteHistory.handler").deleteHistoryHandler; + deleteBooking?: typeof import("./deleteBooking.handler").deleteBookingHandler; confirm?: typeof import("./confirm.handler").confirmHandler; getBookingAttendees?: typeof import("./getBookingAttendees.handler").getBookingAttendeesHandler; find?: typeof import("./find.handler").getHandler; @@ -95,21 +95,21 @@ export const bookingsRouter = router({ input, }); }), - deleteHistory: authedProcedure.input(ZDeleteHistoryInputSchema).mutation(async ({ input, ctx }) => { - if (!UNSTABLE_HANDLER_CACHE.deleteHistory) { - // Dynamically import the deleteHistory handler - UNSTABLE_HANDLER_CACHE.deleteHistory = await import("./deleteHistory.handler").then( - (mod) => mod.deleteHistoryHandler + deleteBooking: authedProcedure.input(ZDeleteBookingInputSchema).mutation(async ({ input, ctx }) => { + if (!UNSTABLE_HANDLER_CACHE.deleteBooking) { + // Dynamically import the deleteBooking handler + UNSTABLE_HANDLER_CACHE.deleteBooking = await import("./deleteBooking.handler").then( + (mod) => mod.deleteBookingHandler ); } // Unreachable code but required for type safety - if (!UNSTABLE_HANDLER_CACHE.deleteHistory) { + if (!UNSTABLE_HANDLER_CACHE.deleteBooking) { throw new Error("Failed to load handler"); } // Execute the handler with the context and input - return UNSTABLE_HANDLER_CACHE.deleteHistory({ + return UNSTABLE_HANDLER_CACHE.deleteBooking({ ctx, input, }); diff --git a/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts b/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts new file mode 100644 index 00000000000000..c63f298f6dbf95 --- /dev/null +++ b/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts @@ -0,0 +1,26 @@ +import { prisma } from "@calcom/prisma"; + +import type { TrpcSessionUser } from "../../../trpc"; +import type { TDeleteInputSchema } from "./deleteBooking.schema"; + +type DeleteOptions = { + ctx: { + user: NonNullable; + }; + input: TDeleteInputSchema; +}; + +export const deleteBookingHandler = async ({ ctx, input }: DeleteOptions) => { + const { user } = ctx; + const { id } = input; + await prisma.booking.delete({ + where: { + userId: user.id, + id, + }, + }); + + return { + id, + }; +}; diff --git a/packages/trpc/server/routers/viewer/bookings/deleteBooking.schema.ts b/packages/trpc/server/routers/viewer/bookings/deleteBooking.schema.ts new file mode 100644 index 00000000000000..71f4e4543e2f98 --- /dev/null +++ b/packages/trpc/server/routers/viewer/bookings/deleteBooking.schema.ts @@ -0,0 +1,7 @@ +import { z } from "zod"; + +export const ZDeleteBookingInputSchema = z.object({ + id: z.number(), +}); + +export type TDeleteInputSchema = z.infer; diff --git a/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts b/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts deleted file mode 100644 index d2140d5e51d0c8..00000000000000 --- a/packages/trpc/server/routers/viewer/bookings/deleteHistory.handler.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { prisma } from "@calcom/prisma"; - -import type { TrpcSessionUser } from "../../../trpc"; -import type { TDeleteInputSchema } from "./deleteHistory.schema"; - -type DeleteOptions = { - ctx: { - user: NonNullable; - }; - input: TDeleteInputSchema; -}; - -export const deleteHistoryHandler = async ({ ctx: _ctx, input }: DeleteOptions) => { - const { id } = input; - - await prisma.booking.delete({ - where: { - id, - }, - }); - - await prisma.bookingSeat.deleteMany({ - where: { - bookingId: id, - }, - }); - - await prisma.bookingReference.deleteMany({ - where: { - bookingId: id, - }, - }); - - return { - id, - }; -}; diff --git a/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts b/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts deleted file mode 100644 index 3eb83d188e899b..00000000000000 --- a/packages/trpc/server/routers/viewer/bookings/deleteHistory.schema.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { z } from "zod"; - -export const ZDeleteHistoryInputSchema = z.object({ - id: z.number(), -}); - -export type TDeleteInputSchema = z.infer; From a39ac0a77ce7bf5363e9a55d85090319028ce580 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Mon, 17 Feb 2025 17:09:18 +0530 Subject: [PATCH 05/12] Remove logs --- packages/platform/atoms/event-types/hooks/useEventTypeForm.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts b/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts index a6b3a6392f8679..4c5f22bced3dd4 100644 --- a/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts +++ b/packages/platform/atoms/event-types/hooks/useEventTypeForm.ts @@ -263,7 +263,6 @@ export const useEventTypeForm = ({ }; const handleSubmit = async (values: FormValues) => { - console.log("handlesubmit invoked!"); const { children } = values; const dirtyValues = getDirtyFields(values); const dirtyFieldExists = Object.keys(dirtyValues).length !== 0; From bf28c12f987376fc791fb746336d401fb8ed6af2 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Mon, 17 Feb 2025 18:11:42 +0530 Subject: [PATCH 06/12] Add tests to check the delete operation --- apps/web/test/lib/deleteBooking.test.ts | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apps/web/test/lib/deleteBooking.test.ts diff --git a/apps/web/test/lib/deleteBooking.test.ts b/apps/web/test/lib/deleteBooking.test.ts new file mode 100644 index 00000000000000..3e05f7099d9d4e --- /dev/null +++ b/apps/web/test/lib/deleteBooking.test.ts @@ -0,0 +1,36 @@ +import prismaMock from "../../../../tests/libs/__mocks__/prismaMock"; + +import { describe, expect, it, beforeEach, vi } from "vitest"; + +import { deleteBookingHandler } from "@calcom/trpc/server/routers/viewer/bookings/deleteBooking.handler"; + +describe("Booking deletion", () => { + beforeEach(() => { + vi.clearAllMocks(); + }); + + it("should delete a single booking successfully", async () => { + const mockBooking = { + id: 1, + userId: 123, + }; + + prismaMock.booking.delete.mockResolvedValue(mockBooking); + + const ctx = { + user: { + id: 123, + }, + }; + + await deleteBookingHandler({ + ctx, + input: { id: 1 }, + }); + + expect(prismaMock.booking.delete).toHaveBeenCalledTimes(1); + expect(prismaMock.booking.delete).toHaveBeenCalledWith({ + where: { id: 1, userId: 123 }, + }); + }); +}); From 0de08b865e6fe77e810dab3feca41e91175d42d3 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Wed, 19 Feb 2025 15:56:16 +0530 Subject: [PATCH 07/12] Add test for past booking delete functionality --- .../__tests__/DeleteBookingDialog.test.tsx | 67 +++++++++++++++++++ .../bookings/__tests__}/deleteBooking.test.ts | 28 ++++---- 2 files changed, 82 insertions(+), 13 deletions(-) create mode 100644 packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx rename {apps/web/test/lib => packages/trpc/server/routers/viewer/bookings/__tests__}/deleteBooking.test.ts (53%) diff --git a/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx b/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx new file mode 100644 index 00000000000000..8ccbc012660de1 --- /dev/null +++ b/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx @@ -0,0 +1,67 @@ +import { render, screen, fireEvent } from "@testing-library/react"; +import * as React from "react"; +import { vi } from "vitest"; + +import { DeleteBookingDialog } from "../DeleteBookingDialog"; + +const invalidateMock = vi.fn(); + +vi.mock("@calcom/trpc", () => ({ + trpc: { + useUtils: vi.fn(() => ({ + viewer: { + bookings: { + invalidate: invalidateMock, + }, + }, + })), + viewer: { + bookings: { + deleteBooking: { + useMutation: vi.fn(({ onSuccess }: { onSuccess: () => void }) => ({ + mutate: () => { + onSuccess(); + }, + isPending: false, + })), + }, + }, + }, + }, +})); + +vi.mock("@calcom/lib/hooks/useLocale", () => ({ + useLocale: () => ({ t: (key: string) => key }), +})); + +describe("DeleteBookingDialog", () => { + const mockProps = { + bookingId: 123, + isOpenDialog: true, + setIsOpenDialog: vi.fn(), + }; + + beforeEach(() => { + vi.clearAllMocks(); + }); + + it("renders the dialog when open", () => { + render(); + expect(screen.getByText("delete_history_title")).toBeInTheDocument(); + expect(screen.getByText("delete_history_description")).toBeInTheDocument(); + }); + + it("closes the dialog when cancel is clicked", async () => { + render(); + fireEvent.click(screen.getByText("cancel")); + expect(mockProps.setIsOpenDialog).toHaveBeenCalledWith(false); + }); + + it("deletes the booking and closes the dialog", () => { + render(); + + fireEvent.click(screen.getByText("confirm")); + expect(mockProps.setIsOpenDialog).toHaveBeenCalledWith(false); + expect(invalidateMock).toHaveBeenCalled(); + }); +}); diff --git a/apps/web/test/lib/deleteBooking.test.ts b/packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.test.ts similarity index 53% rename from apps/web/test/lib/deleteBooking.test.ts rename to packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.test.ts index 3e05f7099d9d4e..6f288b0350d877 100644 --- a/apps/web/test/lib/deleteBooking.test.ts +++ b/packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.test.ts @@ -1,27 +1,29 @@ -import prismaMock from "../../../../tests/libs/__mocks__/prismaMock"; +import prismaMock from "../../../../../../../tests/libs/__mocks__/prismaMock"; import { describe, expect, it, beforeEach, vi } from "vitest"; import { deleteBookingHandler } from "@calcom/trpc/server/routers/viewer/bookings/deleteBooking.handler"; +import type { TrpcSessionUser } from "@calcom/trpc/server/trpc"; describe("Booking deletion", () => { beforeEach(() => { vi.clearAllMocks(); }); + const ctx = { + user: { + id: 123, + name: "test", + timeZone: "timeZone", + username: "test_username", + } as NonNullable, + }; + it("should delete a single booking successfully", async () => { - const mockBooking = { - id: 1, - userId: 123, - }; - - prismaMock.booking.delete.mockResolvedValue(mockBooking); - - const ctx = { - user: { - id: 123, - }, - }; + const mockBooking: any = { id: 1, userId: 123 }; + + // Set the spy to resolve with your mock data + prismaMock.booking.delete.mockResolvedValueOnce(mockBooking); await deleteBookingHandler({ ctx, From 0d30ea4e035fb02b01b91e428d3ea0d5f0cc6d8a Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Wed, 19 Feb 2025 16:08:57 +0530 Subject: [PATCH 08/12] Add dynamic import --- .../server/routers/viewer/bookings/deleteBooking.handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts b/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts index c63f298f6dbf95..75b40287f162b8 100644 --- a/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts +++ b/packages/trpc/server/routers/viewer/bookings/deleteBooking.handler.ts @@ -1,6 +1,6 @@ import { prisma } from "@calcom/prisma"; +import type { TrpcSessionUser } from "@calcom/trpc/server/trpc"; -import type { TrpcSessionUser } from "../../../trpc"; import type { TDeleteInputSchema } from "./deleteBooking.schema"; type DeleteOptions = { From 485ce0efe926299e26800f34e9a6a1bc443d672f Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Wed, 19 Feb 2025 17:02:07 +0530 Subject: [PATCH 09/12] Correct title for test --- .../{deleteBooking.test.ts => deleteBooking.handler.test.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/trpc/server/routers/viewer/bookings/__tests__/{deleteBooking.test.ts => deleteBooking.handler.test.ts} (100%) diff --git a/packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.test.ts b/packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.handler.test.ts similarity index 100% rename from packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.test.ts rename to packages/trpc/server/routers/viewer/bookings/__tests__/deleteBooking.handler.test.ts From b1e4737209b2cc06b13b9e05ab366d37a0ac4ad1 Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Wed, 19 Feb 2025 20:13:00 +0530 Subject: [PATCH 10/12] fix title and description --- apps/web/components/booking/BookingListItem.tsx | 2 +- apps/web/public/static/locales/en/common.json | 4 ++-- .../bookings/components/dialog/DeleteBookingDialog.tsx | 4 ++-- .../components/dialog/__tests__/DeleteBookingDialog.test.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index f8a449bb98064d..cec7135d895000 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -295,7 +295,7 @@ function BookingListItem(booking: BookingItemProps) { if (isBookingInPast) { editBookingActions.push({ id: "delete_history", - label: t("delete_history_title"), + label: t("delete"), onClick: () => { setIsOpenDeleteBookingDialog(true); }, diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 82943bbfaba41b..899f702b24cc91 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -2958,8 +2958,8 @@ "verify_email": "Verify email", "verify_email_change": "Verify email change", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", - "delete_history_title": "Delete booking history", - "delete_history_description": "Are you sure you want to delete this from your booking history?", + "delete_booking_title": "Delete booking?", + "delete_booking_description": "Are you sure you want to delete this booking?", "unable_to_delete_booking": "Unable to delete booking", "booking_delete_successfully": "Booking deleted successfully" } diff --git a/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx b/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx index 4559cb7b1dc789..96234c4a52c69a 100644 --- a/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx +++ b/packages/features/bookings/components/dialog/DeleteBookingDialog.tsx @@ -33,13 +33,13 @@ export const DeleteBookingDialog = (props: IDeleteBookingDialog) => { { e.preventDefault(); deleteBookingMutation.mutate({ id: bookingId }); }}> - {t("delete_history_description")} + {t("delete_booking_description")} ); diff --git a/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx b/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx index 8ccbc012660de1..c3222f2c16cb81 100644 --- a/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx +++ b/packages/features/bookings/components/dialog/__tests__/DeleteBookingDialog.test.tsx @@ -47,8 +47,8 @@ describe("DeleteBookingDialog", () => { it("renders the dialog when open", () => { render(); - expect(screen.getByText("delete_history_title")).toBeInTheDocument(); - expect(screen.getByText("delete_history_description")).toBeInTheDocument(); + expect(screen.getByText("delete_booking_title")).toBeInTheDocument(); + expect(screen.getByText("delete_booking_description")).toBeInTheDocument(); }); it("closes the dialog when cancel is clicked", async () => { From 4e1a396916481235cda76d83a3ec255fb9aa861c Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Wed, 19 Feb 2025 23:53:33 +0530 Subject: [PATCH 11/12] Remove unnecessary changes in locales --- apps/web/public/static/locales/ar/common.json | 1 - apps/web/public/static/locales/en/common.json | 18 +++++++++--------- apps/web/public/static/locales/he/common.json | 1 - apps/web/public/static/locales/it/common.json | 1 - apps/web/public/static/locales/ja/common.json | 1 - 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/apps/web/public/static/locales/ar/common.json b/apps/web/public/static/locales/ar/common.json index 3a1497ce67081c..71ba4fb9affb1f 100644 --- a/apps/web/public/static/locales/ar/common.json +++ b/apps/web/public/static/locales/ar/common.json @@ -2957,5 +2957,4 @@ "verify_email": "التحقق من البريد الإلكتروني", "verify_email_change": "تأكيد تغيير البريد الإلكتروني", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ أضف السلاسل الجديدة أعلاه هنا ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" - } \ No newline at end of file diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 899f702b24cc91..e53df8839ad63a 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -56,7 +56,7 @@ "cancellation_reason": "Reason for cancellation (optional)", "cancellation_reason_host": "Reason for cancellation", "cancellation_reason_placeholder": "Why are you cancelling?", - "notify_attendee_cancellation_reason_warning":"Cancellation reason will be shared with guests", + "notify_attendee_cancellation_reason_warning": "Cancellation reason will be shared with guests", "rejection_reason_placeholder": "Why are you rejecting?", "rejection_reason": "Reason for rejecting", "rejection_reason_title": "Reject the booking request?", @@ -2672,7 +2672,7 @@ "x_marked_as_no_show": "{{x}} marked as no-show", "x_unmarked_as_no_show": "{{x}} unmarked as no-show", "team_select_info": "triggers for all team event types and all team members' personal event types", - "team_settings_description":"Manage settings for you team", + "team_settings_description": "Manage settings for you team", "no_show_updated": "No-show status updated for attendees", "email_copied": "Email copied", "phone_number_copied": "Phone Number Copied", @@ -2946,10 +2946,10 @@ "internal_booking_note": "Internal Note", "internal_note_cancellation_reason": "Reason shared with customer (optional)", "internal_booking_note_description": "This note will be visible to only members of your team", - "internal_note_presets":"Internal Cancelation Notes Presets", - "internal_note_presets_description" : "Create presets for internal notes that can be applied to bookings", - "internal_note_presets_updated_successfully" : "Internal note presets updated successfully", - "add_preset" : "Add Preset", + "internal_note_presets": "Internal Cancelation Notes Presets", + "internal_note_presets_description": "Create presets for internal notes that can be applied to bookings", + "internal_note_presets_updated_successfully": "Internal note presets updated successfully", + "add_preset": "Add Preset", "authorize": "Authorize", "next": "Next", "hide": "Hide", @@ -2957,9 +2957,9 @@ "desc": "Desc", "verify_email": "Verify email", "verify_email_change": "Verify email change", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", "delete_booking_title": "Delete booking?", "delete_booking_description": "Are you sure you want to delete this booking?", "unable_to_delete_booking": "Unable to delete booking", - "booking_delete_successfully": "Booking deleted successfully" -} + "booking_delete_successfully": "Booking deleted successfully", + "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", +} \ No newline at end of file diff --git a/apps/web/public/static/locales/he/common.json b/apps/web/public/static/locales/he/common.json index 12411cc41873f0..476748eacaf78d 100644 --- a/apps/web/public/static/locales/he/common.json +++ b/apps/web/public/static/locales/he/common.json @@ -2957,5 +2957,4 @@ "verify_email": "אימות אימייל", "verify_email_change": "אימות שינוי כתובת דוא\"ל", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" - } \ No newline at end of file diff --git a/apps/web/public/static/locales/it/common.json b/apps/web/public/static/locales/it/common.json index 95351869c7bb7b..616e8bb91a43e6 100644 --- a/apps/web/public/static/locales/it/common.json +++ b/apps/web/public/static/locales/it/common.json @@ -2957,5 +2957,4 @@ "verify_email": "Verifica email", "verify_email_change": "Verifica la modifica dell'email", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Aggiungi le tue nuove stringhe qui sopra ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" - } \ No newline at end of file diff --git a/apps/web/public/static/locales/ja/common.json b/apps/web/public/static/locales/ja/common.json index 50ca23cdf278c2..036d03de9413fa 100644 --- a/apps/web/public/static/locales/ja/common.json +++ b/apps/web/public/static/locales/ja/common.json @@ -2957,5 +2957,4 @@ "verify_email": "メールアドレスを確認", "verify_email_change": "メールアドレスの変更を確認", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ この上に新しい文字列を追加してください ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" - } \ No newline at end of file From 19a45f92712affd188dd4644539e0ea5cb6641b6 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:00:51 +0530 Subject: [PATCH 12/12] Update common.json --- apps/web/public/static/locales/en/common.json | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 23884ff056c4a5..63dc85daa14d98 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -2992,7 +2992,6 @@ "delete_booking_description": "Are you sure you want to delete this booking?", "unable_to_delete_booking": "Unable to delete booking", "booking_delete_successfully": "Booking deleted successfully", - "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑", "end_date_not_selected": "You didn't set an end date for your OOO", "my_ooo": "My OOO", "team_ooo": "Team OOO",