Skip to content

Commit

Permalink
Merge branch 'main' into v9-new-types
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed May 17, 2024
2 parents 39613f1 + b7fbef3 commit 42266f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/using-daypicker/localization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ sidebar_position: 5

| Prop Name | Type | Description |
| ----------------------- | --------------------------------------------- | ------------------------------------------------------------------ |
| `locale` | [`Locale`](http://date-fns.org/docs/I18n) | Set the locale. Default is `en-US`. |
| `locale` | [`Locale`](https://date-fns.org/docs/I18n) | Set the locale. Default is `en-US`. |
| `weekStartsOn` | `1` \| `2` \| `3` \| `4` \| `5` \| `6` \| `7` | Display the days falling into the other months. |
| `firstWeekContainsDate` | `1` \| `4` | Configure the first date in the first week of the year. |
| `ISOWeek` | `boolean` | Use [ISO Week Dates](https://en.wikipedia.org/wiki/ISO_week_date). |

### Set a Different Locale

To set a locale different than the the default `English (US)`, pass to the `locale` prop a [Locale](http://date-fns.org/docs/Locale) object imported from `date-fns`.
To set a locale different than the the default `English (US)`, pass to the `locale` prop a [Locale](https://date-fns.org/docs/I18n) object imported from `date-fns`.

For example, to localize the calendar in Spanish, import the `es` locale object from date-fns and pass it to the component.

Expand Down

0 comments on commit 42266f9

Please sign in to comment.