@jsvision/ui / Catalog
Interface: Catalog
Defined in: i18n/dist/types.d.ts:56
A validated, locale-scoped message catalog.
Example
ts
import type { Catalog } from '@jsvision/i18n';
const catalog: Catalog = {
schema: 1,
locale: 'nl',
messages: { 'app.greeting': 'Hallo' },
};Properties
locale
readonlylocale:string
Defined in: i18n/dist/types.d.ts:60
Canonical BCP-47 catalog locale without Unicode or private-use extensions.
messages
readonlymessages:Readonly<Record<string,Message>>
Defined in: i18n/dist/types.d.ts:62
Flat namespaced message-key map.
schema
readonlyschema:1
Defined in: i18n/dist/types.d.ts:58
Exact schema version used by this catalog.