-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Changing locale doesn't change locale text for inline datepicker #1203
Comments
Did you try to import the moment locale as |
Actually Locale works fine, it is imported and translates everything correctly, the only problem is that |
Same to me with the following setup: <DatePicker
inline
locale={locale}
/> If I change the |
Same problem by my side, the locale text changes when choosing another date only ! |
Same issue for inline calendar |
A bit of a hack, but this is a quick fix:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Has anyone resolved this issue? |
I have a following component:
Expected behavior
When in redux
currentLanguage
is changed, new locale prop is passed toDatePicker
and locale texts should be translated to a new language.Actual behavior
When in redux
currentLanguage
is changed, new locale prop is passed toDatePicker
and locale texts is not translated to a new language. Only for example after DatePicker internal state like selected value is changed, text is translated.Steps to reproduce
Use
DatePicker
component ininline
version and pass dynamic locale. After changing it, you will notice that datepicker text remains the same.The text was updated successfully, but these errors were encountered: