> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: WixStyleReactEnvironmentProvider Component

## Article: WixStyleReactEnvironmentProvider Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/mechanisms/wix-style-react-environment-provider-component.md

## Article Content:

# WixStyleReactEnvironmentProvider

_Components/Mechanisms/WixStyleReactEnvironmentProvider_

Interactive docs page: <https://wix-pages.com/design-system-documentation/#/component/wixstylereactenvironmentprovider>

## Overview

`<WixStyleReactEnvironmentProvider/>` is a wrapper that holds app-wide configuration for the library, such as the locale.

### Do

- Use it to set the locale once for every component inside it, such as `<DatePicker/>`, `<Calendar/>` and `<TimeInput/>`.
- Wrap your whole app with it, or the part of the app that shares one locale.

### Don't

- Don't set the locale on each component separately when one provider can set it for all of them.
- Don't pass a locale that isn't an Intl language code, such as "English" instead of "en".

### Feature examples

#### Locale

Setting the \`locale\` prop will make any component in the library to use that locale automatically without the need to configure each component separately. The list of possible locales is listed in the component's API

```jsx
<StorybookComponents.Stack>
  <FormField label="Without locale context">
    <Calendar autoFocus={false} onChange={() => {}} />
  </FormField>
  <FormField label="With locale context">
    <WixStyleReactEnvironmentProvider locale="es">
      <Calendar autoFocus={false} onChange={() => {}} />
    </WixStyleReactEnvironmentProvider>
  </FormField>
</StorybookComponents.Stack>;
```

## Code

```jsx
import { WixStyleReactEnvironmentProvider } from '@wix/design-system';
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Accepts any content that receives the environment configuration, usually the whole app. |
| `locale` | `string` | — | Define the user locale to be used and effect some translation and localization (like DatePicker) - this should be compliant to Intl language codes. |
| `pageHeaderId` | `string` | — | Define id that is applied to the header of a main page. |

## Testkit

No testkit for this component — it doesn't expose a unidriver testkit.

## Changelog

- **1.340.0** (2026-10-21) — maintenance release, no component-specific changes
- **1.339.0** (2026-10-19) — maintenance release, no component-specific changes
- **1.338.0** (2026-10-15) — maintenance release, no component-specific changes
- **1.331.0** (2026-10-01) — maintenance release, no component-specific changes
- **1.330.3** (2026-09-29) — maintenance release, no component-specific changes
- **1.325.0** (2026-09-17) — maintenance release, no component-specific changes
- **1.310.0** (2026-08-10) — maintenance release, no component-specific changes
- **1.292.0** (2026-06-22) — maintenance release, no component-specific changes
- **1.266.0** (2026-04-07) — maintenance release, no component-specific changes
- **1.260.0** (2026-03-17) — maintenance release, no component-specific changes
- **1.254.0** (2026-02-03) — maintenance release, no component-specific changes
- **1.165.0** (2025-02-27) — maintenance release, no component-specific changes
- **1.104.1** (2024-05-14) — maintenance release, no component-specific changes
- **1.92.1** (2024-02-05) — maintenance release, no component-specific changes