From 90b0d24c1e26c176d7b1befce51763a2423d0b7b Mon Sep 17 00:00:00 2001 From: Nafees Nazik <84864519+G3root@users.noreply.github.com> Date: Wed, 31 May 2023 22:03:29 +0530 Subject: [PATCH] fix: remove duplicate i18n key (#9234) --- apps/web/pages/booking/[uid].tsx | 6 ++++-- apps/web/public/static/locales/en/common.json | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index 64db39652a..a8e11ce6b3 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -279,7 +279,9 @@ export default function Success(props: SuccessProps) { darkBrandColor: props.profile.darkBrandColor, }); const title = t( - `booking_${needsConfirmation ? "submitted" : "confirmed"}${props.recurringBookings ? "_recurring" : ""}` + `booking_${needsConfirmation ? "booking_submitted" : "confirmed"}${ + props.recurringBookings ? "_recurring" : "" + }` ); const locationToDisplay = getSuccessPageLocationMessage( @@ -364,7 +366,7 @@ export default function Success(props: SuccessProps) { {needsConfirmation && !isCancelled ? props.recurringBookings ? t("submitted_recurring") - : t("submitted") + : t("booking_submitted") : isCancelled ? seatReferenceUid ? t("no_longer_attending") diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index b89bc2d6c4..7405f67028 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -273,7 +273,6 @@ "user_needs_to_confirm_or_reject_booking_recurring": "{{user}} still needs to confirm or reject each booking of the recurring meeting.", "meeting_is_scheduled": "This meeting is scheduled", "meeting_is_scheduled_recurring": "The recurring events are scheduled", - "submitted": "Your booking has been submitted", "submitted_recurring": "Your recurring meeting has been submitted", "booking_submitted": "Your booking has been submitted", "booking_submitted_recurring": "Your recurring meeting has been submitted",