Skip to contents

Localization Provider

Defines the locale to use in the temporal components.

View as Markdown
mars 2026

Anatomy

Import the component plus the date-fns library locale and wrap them around your app.

If every temporal component in your app shares the same locale, you should use the provider once at the root of your application.

Anatomy

Examples

Nesting locales

The <LocalizationProvider> can be nested to change the locale for a part of the application.

This could be useful when you need some temporal components in your application to use a different locale than the rest of your app.

mars 2026
三月 2026

API reference

temporalLocaleLocaleen-US
Description

The locale to use in temporal components.

Type
Locale | undefined
Default
en-US
childrenReactNode
Type
React.ReactNode