# Locale
URL: https://ark-ui.com/docs/utilities/locale
Source: https://raw.githubusercontent.com/chakra-ui/ark/refs/heads/main/website/src/content/pages/utilities/locale.mdx
Locale provider for setting the locale and direction of the app.
---
## Setup
The `LocaleProvider` component sets the locale for your app, formatting dates, numbers, and other locale-specific data.
> **Note:** If no `LocaleProvider` is setup, the default locale for the app will be `en-US` and therefore the direction
> will be `ltr`.
**Example: setup**
#### React
```tsx
import { LocaleProvider } from '@ark-ui/react/locale'
export const App = () => {
return
{JSON.stringify({ locale, dir }, null, 2)}
}
```
#### Solid
```tsx
import { useLocaleContext } from '@ark-ui/solid/locale'
export const Usage = () => {
const locale = useLocaleContext()
return {JSON.stringify(locale(), null, 2)}
}
```
#### Vue
```vue
{{ JSON.stringify(locale, null, 2) }}
```
#### Svelte
```svelte
{JSON.stringify(locale(), null, 2)}
```
## API Reference
**Component API Reference**
#### React
**LocaleProvider Props:**
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| `locale` | `string` | Yes | The locale to use for the application. |
#### Solid
**LocaleProvider Props:**
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| `locale` | `string` | Yes | The locale to use for the application. |
#### Vue
**LocaleProvider Props:**
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| `locale` | `string` | Yes | The locale to use for the application. |
#### Svelte
**LocaleProvider Props:**
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| `locale` | `string` | Yes | The locale to use for the application. |