View as Markdown

API reference

@salmonui/core/locale

4 exported symbols: 1 component, 1 function, 1 interface and 1 type. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/core/locale';

Components

  • LocaleProviderSets the locale and the localeText defaults of every Salmon UI component below it. Renders no element. Without a provider components use their built-in English…

Functions

  • useLocaleThe locale of the nearest LocaleProvider, or undefined outside one.

Interfaces

Types

  • LocaleCatalogText catalog of a LocaleProvider: per component family, the keys of that component's localeText prop. A locale pack (@salmonui/core/locale/zh-TW) is one; appli…