[BUG] - Date / Calender components not updating correctly with locale
NextUI Version
2.4.0
Describe the bug
When updating the locale to use an international calendar, the date and calendar components don't update completely, if at all. This may be related to Next.js, because the CodeSandbox environment for this example seems to work fine, and that uses standard React.
The calendar seems to partially update, this is observable in the stackblitz link below.
Your Example Website or App
https://stackblitz.com/edit/stackblitz-starters-caucmz?file=app%2Fpage.tsx
Steps to Reproduce the Bug or Issue
- Open the stackblitz link and wait for the page to compile and load.
- Observe that the date picker has not properly updated to use the international calendar.
Expected behavior
Date and calendar components should be updating completely to use the specified locale.
Screenshots or Videos
No response
Operating System Version
Windows 11, developing in WSL Ubuntu 22.04 LTS
Browser
Chrome
Able to reproduce in next / vite app.
Can I work on this issue? :)
@juank1809 assigned. feel free to contact us in Discord if you need any help.
@juank1809 any updates? if not, I'd like to take over it since I'm working on similar issue.
Hi! I have been trying to resolve this issue for weeks but could not accomplish it. I'm sorry. Feel free to take over :) @wingkwong
used the Date library i guess this can work
is this issue already solved?
@sohan01fw if it is still open and no linked PR, then no
Having the same issue, I18nProvider doesn't change anything for me.
@bebbs-dmt and for those who are having this issue, please check the version of @react-aria/i18n that you are using. NextUI is using a fixed version 3.11.1. If you are using other version, it may cause this issue. From the OP example, you may simply change as follows in your package.json.
-"@react-aria/i18n": "^3.11.1",
+"@react-aria/i18n": "3.11.1",
Here's the result. You may need to remove node_modules before reinstalling. I'll update the docs accordingly.