Skip to content

UiStringsProvider

Open .md
Live preview

Loading example…

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

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.

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