Month name not updating on language change
See original GitHub issueWhen I change my moment.locale()
the days of the calendar update but month names don’t unless I completely re-render my page. Is there something special about the way that calendar months are handled that I’m missing?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Month name not updating on language change #327 - GitHub
When I change my moment.locale() the days of the calendar update but month names don't unless I completely re-render my page.
Read more >Change month name language - Microsoft Power BI Community
In the old report go to file > options and settings > options > regional setting > select spanish, save, close desktop and...
Read more >Change month and day names language without change the ...
Change month and day names language without change the whole system language. it will do the trick but it will change Numbers Digits...
Read more >Change the language of the Calendar (names of the days and ...
Change the language of the Calendar (names of the days and months) ... Settings or Control Panel section of Windows and not from...
Read more >Change name of month in Material Ui React - Stack Overflow
You can use local prop of LocalizationProvider , to change the language of DatePicker 's days and months. change the locale for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If anyone is still struggling to get the month names to translate when switching back and forth between different locales, I came up with a workaround. Add the following as a prop to
DateRangePicker
:The moment objects internal to the component don’t seem to get updated when changing moment’s locale (even a re-render doesn’t fix it). Hope it helps!
a medal of honor to @ian-rudge