Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I localize the whole calendar? #16

Open
fernandocanizo opened this issue Jul 1, 2024 · 1 comment
Open

How can I localize the whole calendar? #16

fernandocanizo opened this issue Jul 1, 2024 · 1 comment

Comments

@fernandocanizo
Copy link

Hello, how can I localize the whole calendar, because current code only localizes the button, but once you open the picker you get:

  • inputs
  • presets
  • month names
  • day names

All localized to "en"

image

And I need the calendar to be fully localized because as it's shown currently, it produces confusion.

@gustipardo
Copy link

You can localized the calendar with date-fns into the component Calendar
My code:
import { es } from "date-fns/locale"
<Calendar
weekStartsOn={1}
locale={es}
mode="range"
...

Screenshot from 2024-08-15 09-48-18

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

No branches or pull requests

2 participants