0

I'm using @mui-x/date-pickers 5.0.x and react-intl for i18n management. The current way mui let's you do localization is through adapterLocale (docs). Their solution is incomplete (not all locales are supported), not accurate (the Intl API gives different results), and hard to manage (Imagine you need to support 50 languages, managing and passing stuff around is an issue).

It works by using a render prop - renderInput that gets the relevant masks, value, placeholder & onChange.

Technically, I can implement these myself, but before I do that, I'm looking for a way to make it work 'out-of-the-box' or an easy solution.

Any ideas are welcome.

alexunder
  • 2,075
  • 3
  • 16
  • 29

0 Answers0