diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 2e5d4c1877c079..8ffa5487bbed1e 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1797,6 +1797,7 @@ "wrong_code": "Wrong verification code", "not_verified": "Not yet verified", "no_availability_in_month": "No availability in {{month}}", + "view_previous_month": "View previous month", "view_next_month": "View next month", "send_code": "Send code", "number_verified": "Number Verified", diff --git a/packages/features/calendars/DatePicker.tsx b/packages/features/calendars/DatePicker.tsx index 3e9b7b5c315f10..db788523d1065c 100644 --- a/packages/features/calendars/DatePicker.tsx +++ b/packages/features/calendars/DatePicker.tsx @@ -310,7 +310,7 @@ const DatePicker = ({ scrollToTimeSlots?: () => void; }) => { const browsingDate = passThroughProps.browsingDate || dayjs().startOf("month"); - const { i18n } = useLocale(); + const { i18n, t } = useLocale(); const bookingData = useBookerStore((state) => state.bookingData); const isBookingInPast = bookingData ? new Date(bookingData.endTime) < new Date() : false; @@ -358,7 +358,7 @@ const DatePicker = ({ color="minimal" variant="icon" StartIcon="chevron-left" - aria-label="Previous Month" + aria-label={t("view_previous_month")} />