Closed Muhameti-centralsoft closed 10 months ago
In SSR mode, the server side rendered component has no way of knowing what the browser's preferred locale might be, so it defaults to its own, likely 'en-US'. Browser's preferred locale is passed to the server in Accept-Language HTTP header. You would need to figure out which locale to use based on this header. get-user-locale
might help.
Easier alternative: provide hardcoded locale.
Many thanks! It solved the issue for me :)
Before you start - checklist
Description
The first time the calendar is displayed I get the following warning.
Steps to reproduce
Go to the page where react-calendar is displayed and maybe refresh the page.
Expected behavior
There is no warning
Actual behavior
There is a warning
Additional information
No response
Environment