nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.59k stars 1.41k forks source link

[BUG] - International calendar unexpected behaviour when change month or year on Persion calendar #2960

Closed mahmood-kn closed 2 months ago

mahmood-kn commented 4 months ago

NextUI Version

2.3.6

Describe the bug

I'm using international with Persian calendar but when I try to change the month or year the months get converted to English calendar

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

This is my code and you can check the problem by creating below component:

import {
  parseDate,
} from '@internationalized/date';

import { I18nProvider } from '@react-aria/i18n';
const Form = () => {
let [date, setDate] = useState(parseDate('2021-04-07'));
return (
 <I18nProvider locale='fa-IR-u-ca-persian'>
              <DatePicker
                showMonthAndYearPickers
                variant='bordered'
                className='max-w-md'
                value={date}
                onChange={setDate}
              />
            </I18nProvider>
)
}

Expected behavior

I expect that I can modify month and year in Persian calendar

Screenshots or Videos

https://github.com/nextui-org/nextui/assets/63015240/564d677a-3101-43f3-bea0-880ac08b4865

Operating System Version

Windows

Browser

Chrome

linear[bot] commented 4 months ago

ENG-801 [BUG] - International calendar unexpected behaviour when change month or year on Persion calendar

awesome-pro commented 3 months ago

@mahmood-kn I used to the code provided by you and it working fine, no change to english month. is the issue still there ?