You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`numerals`|[`Numerals`](../api/type-aliases/Numerals.md)| Set the numeral system. |
105
+
106
+
Use the `numerals` prop to set the numeral system. The default is `latn`.
107
+
108
+
```tsx
109
+
import { hi } from"date-fns/locale/hi";
110
+
111
+
<DayPickernumerals="deva"locale={hi} />;
112
+
```
113
+
114
+
<BrowserWindow>
115
+
<Examples.Numerals />
116
+
</BrowserWindow>
117
+
100
118
## Custom Formatters
101
119
102
120
Use the `formatters` prop to customize the formatting of dates, week numbers, day names, and more.
@@ -120,43 +138,3 @@ import { format } from "date-fns";
120
138
|[`formatWeekNumberHeader`](../api/functions/formatWeekNumberHeader.md)| Format the week number header. |
121
139
|[`formatWeekdayName`](../api/functions/formatWeekdayName.md)| Format the weekday name to be displayed in the weekdays header. |
122
140
|[`formatYearDropdown`](../api/functions/formatYearDropdown.md)| Format the years for the dropdown option label. |
123
-
124
-
### Numbering System
125
-
126
-
Use the `formatters` prop to change the [numbering system](https://en.wikipedia.org/wiki/Numeral_system) used in the calendar.
127
-
128
-
For example, to switch to Hindu-Arabic numerals, use the native [`Date.toLocaleString`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) method:
0 commit comments