Skip to content

Commit da4fec9

Browse files
authored
chore: add missing translation (calcom#25753)
1 parent 0ecfd78 commit da4fec9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

apps/web/public/static/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"timeslot_unavailable_book_a_new_time": "The selected time slot is no longer available. <0>Please select a new time</0>",
127127
"timeslot_unavailable_short": "Taken",
128128
"just_connected_description": "You’ve just connected. Please book from above slots or retry later.",
129+
"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.",
129130
"unavailable_timeslot_title": "Unavailable timeslot",
130131
"booking_time_out_of_bounds_error": "The event type cannot be booked at this time. Could you try another time slot?",
131132
"request_body_end_time_internal_error": "Internal Error. Request body does not contain end time",

packages/features/bookings/Booker/components/hooks/useBookings.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,10 @@ export const useBookings = ({ event, hashedLink, bookingForm, metadata, isBookin
537537
handleInstantBooking: (variables: Parameters<typeof createInstantBookingMutation.mutate>[0]) => {
538538
const remaining = getInstantCooldownRemainingMs(eventTypeId);
539539
if (remaining > 0) {
540-
showToast(t("please_try_again_later_or_book_another_slot"), "error");
540+
showToast(
541+
t("please_try_again_later_or_book_another_slot", { remaining: Math.ceil(remaining / 60000) }),
542+
"error"
543+
);
541544
return;
542545
}
543546
createInstantBookingMutation.mutate(variables);

0 commit comments

Comments
 (0)