View as Markdown

API reference: @salmonui/core/locale

LocaleCatalogtype

import type { LocaleCatalog } from '@salmonui/core/locale';
type LocaleCatalog = {
    readonly [family: string]: object | undefined;
};

Text 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; applications may also pass their own or spread a pack and override.