Skip to content

Commit

Permalink
fix: month not being localized with dropdown-years caption layout (#…
Browse files Browse the repository at this point in the history
…2497)

* fix: month not being localized with `dropdown-years` caption layout

* Update test

* Update test

* Update test

* Remove test

* Lint import

* Reduce diff
  • Loading branch information
gpbl committed Sep 28, 2024
1 parent f56c3ce commit 962b6ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DayPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ export function DayPicker(props: DayPickerProps) {
/>
) : (
<span role="status" aria-live="polite">
{formatMonthDropdown(calendarMonth.date.getMonth())}
{formatMonthDropdown(
calendarMonth.date.getMonth(),
locale
)}
</span>
)}
{captionLayout === "dropdown" ||
Expand Down

0 comments on commit 962b6ca

Please sign in to comment.