Skip to content

Commit

Permalink
refactor: make new copy localizable (#17207)
Browse files Browse the repository at this point in the history
* refactor: make this localizable

base on #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>
  • Loading branch information
mfranzke and anikdhabal authored Oct 21, 2024
1 parent b0e3e4c commit 59aff41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/public/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/features/calendars/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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(
Expand All @@ -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>
Expand Down

0 comments on commit 59aff41

Please sign in to comment.