verbal-limeV
Refine3y ago
3 replies
verbal-lime

Can't use other locale on DateFields from Inferencer

For example, I'm building an app with Mantine. The docs says this:
https://refine.dev/docs/api-reference/mantine/components/fields/date/

If you need other locales, you can load them on demand. Refer to loading locales

But there's two problems:

(1) The inferencer calls <DateField value={...} />, it doesn't ask about locales.

(2) The dayjs lib is not exposed on windowor as a global variable, as the docs above seems to imply (also is the method on the source Dayjs' docs to import other locales, loading from a global variable in the browser into another global variable).

This is about i18n but this is not provided by i18nProvider, that's the closest tag available for this post.
This field is used to display dates. It uses Day.js to display date format.
Date | refine
Was this page helpful?