Skip to content

Commit f477f77

Browse files
fix: localize hardcoded prefix in reschedule cancellation reason (calcom#28951)
1 parent e9c6d0e commit f477f77

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/i18n/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,5 +4767,6 @@
47674767
"error_adding_user": "There was an error adding this user.",
47684768
"user_updated_successfully": "User updated successfully.",
47694769
"error_updating_user": "There was an error updating this user.",
4770+
"please_reschedule": "Please reschedule.",
47704771
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
47714772
}

packages/trpc/server/routers/viewer/bookings/requestReschedule.handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ export const requestRescheduleHandler = async ({ ctx, input, source }: RequestRe
236236
uid: bookingToReschedule.uid,
237237
location: bookingToReschedule.location,
238238
destinationCalendar: bookingToReschedule.destinationCalendar,
239-
cancellationReason: `Please reschedule. ${cancellationReason}`, // TODO::Add i18-next for this
239+
cancellationReason: [tAttendees("please_reschedule"), cancellationReason]
240+
.filter(Boolean)
241+
.join(" "),
240242
iCalUID: bookingToReschedule.iCalUID,
241243
...(bookingToReschedule.smsReminderNumber && {
242244
smsReminderNumber: bookingToReschedule.smsReminderNumber,

0 commit comments

Comments
 (0)