nextui-org / nextui

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

[BUG] - can not change language when using <I18nProvider> #3963

Open vanphat304 opened 2 weeks ago

vanphat304 commented 2 weeks ago

NextUI Version

2.4.6

Describe the bug

  i'm set locale is "fr-FR" , but it alway using language base on my browser .

  i also set  <NextUIProvider locale='fr-FR' navigate={router.push}>

  "@react-aria/i18n": "^3.12.3",

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

1) install nextui version : 2.4.6 , "@react-aria/i18n": "^3.12.3", 2) change datepicker like this :

I18nProvider locale="fr-FR" <DatePicker showMonthAndYearPickers variant="bordered" className="max-w-md" label="Appointment date" /> I18nProvider

Expected behavior

i want it change to language in locale

Screenshots or Videos

No response

Operating System Version

macOs

Browser

Chrome

linear[bot] commented 2 weeks ago

ENG-1505 [BUG] - can not change language when using <I18nProvider>

vanphat304 commented 2 weeks ago

Screenshot 2024-10-30 at 11 57 52

wingkwong commented 2 weeks ago

please try again with the fixed version.

"@react-aria/i18n": "3.11.1"