Skip to content

Scheduling infrastructure for absolutely everyone.

chore: add missing translation (#25753)

Udit Takkarda4fec9c27ee
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 8fe725a599b..35770754e05 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -126,6 +126,7 @@
"timeslot_unavailable_book_a_new_time": "The selected time slot is no longer available. <0>Please select a new time</0>",
"timeslot_unavailable_short": "Taken",
"just_connected_description": "You’ve just connected. Please book from above slots or retry later.",
+ "please_try_again_later_or_book_another_slot": "You've just tried connecting now. Please try again later in {{remaining}} minutes or book another slot from the booking page.",
"unavailable_timeslot_title": "Unavailable timeslot",
"booking_time_out_of_bounds_error": "The event type cannot be booked at this time. Could you try another time slot?",
"request_body_end_time_internal_error": "Internal Error. Request body does not contain end time",
diff --git a/packages/features/bookings/Booker/components/hooks/useBookings.ts b/packages/features/bookings/Booker/components/hooks/useBookings.ts
index 80877bdcfee..3ee4755ba84 100644
--- a/packages/features/bookings/Booker/components/hooks/useBookings.ts
+++ b/packages/features/bookings/Booker/components/hooks/useBookings.ts
@@ -537,7 +537,10 @@ export const useBookings = ({ event, hashedLink, bookingForm, metadata, isBookin
handleInstantBooking: (variables: Parameters<typeof createInstantBookingMutation.mutate>[0]) => {
const remaining = getInstantCooldownRemainingMs(eventTypeId);
if (remaining > 0) {
- showToast(t("please_try_again_later_or_book_another_slot"), "error");
+ showToast(
+ t("please_try_again_later_or_book_another_slot", { remaining: Math.ceil(remaining / 60000) }),
+ "error"
+ );
return;
}
createInstantBookingMutation.mutate(variables);