Skip to content

Conversation

@yeasin2002
Copy link

Fixes the Calendar component's localization issue where month names in the dropdown remained in English regardless of the locale prop passed to the component.

Closes #9152

The formatMonthDropdown formatter was hardcoded to use "default" locale:
This caused toLocaleString() to use the browser/OS language instead of the locale prop, resulting in weekdays being translated correctly while month names stayed in English.

Before:

image

Now:

image image

@vercel
Copy link
Contributor

vercel bot commented Dec 21, 2025

@yeasin2002 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Calendar component localization isn't working for month names

1 participant