Describe the bug
- Date picker months aren't Capitalized in other languages. e.g. Polish
localizeMonths is only triggered on mount, so it's impossible to change language without rerender
To Reproduce
Steps to reproduce the behavior:
Error 1.
- Run Component Library
- In UiDatepicker change
lang: 'en-us' to lang: 'pl'
- Open said story
- Open calendar
- Month names are lower cased
Error 2.
- Go to https://component.infermedica.com/?path=/story/organisms-datepicker--full-configuration
- Click on
props.lang
- Select any language other than
en or en-us
- See that nothing changes in Month tab
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
localizeMonthsis only triggered on mount, so it's impossible to change language without rerenderTo Reproduce
Steps to reproduce the behavior:
Error 1.
lang: 'en-us'tolang: 'pl'Error 2.
props.langenoren-usExpected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.