Skip to content

Conversation

@ikku47
Copy link

@ikku47 ikku47 commented Dec 5, 2025

fix(calendar): respect locale prop in month dropdown format

Previously, the month dropdown formatter was hardcoded to use "default" locale,
ignoring the locale prop passed to the Calendar component. This fix ensures
that when a locale is provided via props.locale?.code, it is used for
formatting the month name in the dropdown, falling back to "default" if no
locale is specified.

This change improves internationalization support by allowing the calendar
to display month names in the correct language based on the provided locale.

Fixes: Month dropdown always displaying in default locale regardless of locale prop

@vercel
Copy link
Contributor

vercel bot commented Dec 5, 2025

@iqbalsuperfuture 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.

2 participants