UiStringsProvider
Loading example…
UiStringsProvider is part of the I18n set, imported from @jcsoftdev/ui/i18n.
Import
Section titled “Import”import { UiStringsProvider } from "@jcsoftdev/ui/i18n";export const Spanish: Story = {};Source of the Storybook story.
| 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
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/i18n/ui-strings-provider.tsx