# LocaleProvider (@salmonui/core/locale)

> The LocaleProvider component of @salmonui/core/locale: Sets the locale and the localeText defaults of every Salmon UI component below it. Renders no element. Without a provider components use their built-in English text and their own locale props, and pay nothing for this module.

Canonical: https://salmonui.dev/docs/reference/core/locale/LocaleProvider

```ts
import { LocaleProvider } from '@salmonui/core/locale';
```

Entry index: https://salmonui.dev/docs/reference/core/locale (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/locale.md).

## Reference

Kind: component

```ts
function LocaleProvider({ locale, localeText, children }: LocaleProviderProps): ReactNode;
```

Sets the `locale` and the `localeText` defaults of every Salmon UI
component below it. Renders no element. Without a provider components use
their built-in English text and their own `locale` props, and pay nothing
for this module.

Props: [`LocaleProviderProps`](https://salmonui.dev/docs/reference/core/locale/LocaleProviderProps) (its members are the props)
