[DOC] NumberField docs incorrectly say Intl is used "to display date format"
Documentation issue
Related docs pages (same incorrect intro on all four UI integrations):
- https://refine.dev/docs/ui-integrations/ant-design/components/fields/number-field/
- https://refine.dev/docs/ui-integrations/material-ui/components/fields/number-field/
- https://refine.dev/docs/ui-integrations/mantine/components/fields/number-field/
- https://refine.dev/docs/ui-integrations/chakra-ui/components/fields/number-field/
Describe the thing to improve
The NumberField intro incorrectly says that Intl is used “to display date format”. This looks like a copy-paste from DateField. The same wording also appears in the component JSDoc comments.
Current text (example from Ant Design docs):
This field is used to display a number formatted according to the browser locale, right aligned. and uses
Intlto display date format.
Problems:
- It says “date format” for a number field.
- Grammar:
right aligned. and usesshould be cleaned up (e.g.right-aligned, and uses). - The Usage section on the same page already correctly describes
Intl.NumberFormat(), so the intro contradicts the rest of the page.
Affected files:
Docs:
documentation/docs/ui-integrations/ant-design/components/fields/number-field/index.mddocumentation/docs/ui-integrations/material-ui/components/fields/number-field/index.mddocumentation/docs/ui-integrations/mantine/components/fields/number-field/index.mddocumentation/docs/ui-integrations/chakra-ui/components/fields/number-field/index.md
JSDoc (same incorrect sentence):
packages/antd/src/components/fields/number/index.tsxpackages/mui/src/components/fields/number/index.tsxpackages/mantine/src/components/fields/number/index.tsxpackages/chakra-ui/src/components/fields/number/index.tsx
Describe the solution (optional)
Update the intro (and matching JSDoc) to describe number formatting, for example:
This field is used to display a number formatted according to the browser locale, right-aligned, and uses
Intlto format numbers.
Optionally mention Intl.NumberFormat to stay consistent with the Usage section.
No runtime behavior changes — docs and JSDoc only.
I'd like to work on this if it looks good to maintainers.
Source: refinedev/refine