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

[BUG] - Datepicker locale not working #4137

Open
meisamtj81 opened this issue Nov 22, 2024 · 5 comments
Open

[BUG] - Datepicker locale not working #4137

meisamtj81 opened this issue Nov 22, 2024 · 5 comments

Comments

@meisamtj81
Copy link

meisamtj81 commented Nov 22, 2024

NextUI Version

2.4.8

Describe the bug

Local not working!
local="fa-IR-u-ca-persian"
I saw many have this issue and there was no solution for this, this is when in docs seems it works correctly. Even copying and pasting the code as exactly it is also not working in local fresh installed app.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. install app
  2. import datepicker
  3. add local provider

Expected behavior

it should change the calendar and date but it persistly show gerogory calendar

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

Copy link

linear bot commented Nov 22, 2024

@wingkwong
Copy link
Member

please share your package.json. It could be caused by higher version of @internationalized/date

@meisamtj81
Copy link
Author

please share your package.json. It could be caused by higher version of @internationalized/date

Good point, those are
"@internationalized/date": "^3.6.0", "@nextui-org/react": "^2.4.8", "@react-aria/i18n": "^3.12.4",

@wingkwong
Copy link
Member

please use the following and lemme know the result.

"@internationalized/date": "3.5.4"
"@react-aria/i18n": "3.11.1"

@meisamtj81
Copy link
Author

meisamtj81 commented Nov 23, 2024

please use the following and lemme know the result.

"@internationalized/date": "3.5.4"
"@react-aria/i18n": "3.11.1"

Thank you, yes it solved the issue.
By the way I have installed Vite-React version and vite automatically chose the right version on install.

It used bellow versions
@internationalized/date -> 3.6.0 and @react-aria/i18n -> 3.11.1

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