TldrawUiTranslationProvider

See source code
Table of contents

Provides a translation context to the editor. Wrap this around components that use useTranslation (such as TldrawSelectionForeground) when you don't want to use the full TldrawUiContextProvider. Must be rendered inside an AssetUrlsProvider.


Properties

children

children: React.ReactNode;

locale

locale: string;

overrides

optional

A collection of overrides different locales.

overrides?: Record<string, Record<string, string>>;

Example

<TranslationProvider overrides={{ en: { 'style-panel.styles': 'Properties' } }} />

Prev
TldrawUiTooltipProvider
Next
ToggleAutoSizeMenuItem