# UiStringsProvider

> `UiStringsProvider` is part of the I18n set, imported from `@jcsoftdev/ui/i18n`.

Source: https://ui.jcsoftdev.com/docs/components/ui-strings-provider

`UiStringsProvider` is part of the I18n set, imported from `@jcsoftdev/ui/i18n`.

## Import

```ts
import { UiStringsProvider } from "@jcsoftdev/ui/i18n";
```

## Usage

```tsx
export const Spanish: Story = {};
```

_Source of the Storybook story._

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` | `"en" \| "es"` |  | Preset to start from. Without it the provider keeps the strings of its parent (default `en`). |
| `strings` | `Partial<UiStrings>` |  | Overrides applied on top of the preset. Missing or empty entries keep the preset string. |
| `children` * | `ReactNode` |  |  |

`*` marks a required prop.

## Storybook stories

- [Spanish](/storybook/?path=/story/foundations-uistringsprovider--spanish)
- [English](/storybook/?path=/story/foundations-uistringsprovider--english)
- [With Override](/storybook/?path=/story/foundations-uistringsprovider--with-override)

## Source

`packages/ui/src/i18n/ui-strings-provider.tsx`
