I am trying to localised rhe MuiDatePicker (fr) like this exemple https://v0.material-ui.com/#/components/date-picker
val frDt = "global.Intl.DateTimeFormat".asInstanceOf[js.Function]
MuiDatePicker(
DateTimeFormat = frDt,
locale = "fr",
mode = PortraitLandscape.landscape
)()
And i am having this error..
material_ui-bundle.js:4 Uncaught TypeError: e is not a constructor
at h (material_ui-bundle.js:4)
at material_ui-bundle.js:18
at Array.map (<anonymous>)
at t.value (material_ui-bundle.js:18)
at index-bundle.js:30
at s (index-bundle.js:29)
at g._renderValidatedComponentWithoutOwnerOrContext (index-bundle.js:30)
at g._renderValidatedComponent (index-bundle.js:30)
at g.performInitialMount (index-bundle.js:30)
at g.mountComponent (index-bundle.js:29)
Any help please?? :(
DateTimeFormat
is a class (i havent used this) you could try js.constructorOf[Intl.DateTimeFormat]
and cast that
as='random'
stuff might be hard though