refactor: make new copy localizable (#17207)

* refactor: make this localizable

base on https://github.com/calcom/cal.com/pull/17198 making the new copy localizable

* Update common.json

* Update common.json

* Update common.json

---------

Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
This commit is contained in:
Maximilian FranzkeandAnik Dhabal Babu authored and GitHub committed 2024-10-21 06:38:25 +00:00
1 parent b0e3e4c82f
commit 59aff41ca3
2 files changed
+4 -3

No files matched your search

+3 -3
View File
@@ -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")}
/>
<Button
className={classNames(
@@ -370,7 +370,7 @@ const DatePicker = ({
color="minimal"
variant="icon"
StartIcon="chevron-right"
aria-label="Next Month"
aria-label={t("view_next_month")}
/>
</div>
</div>