@jsvision/i18n / defineCatalog
Function: defineCatalog()
defineCatalog(
input,options?):Catalog
Defined in: validation.ts:653
Validate and deep-copy one catalog for safe publication.
Parameters
input
unknown
Candidate schema-1 catalog.
options?
Completeness and accelerator validation policy.
Returns
Frozen catalog with a canonical locale and copied messages.
Throws
I18nError when any blocking issue exists.
Example
ts
const catalog = defineCatalog({ schema: 1, locale: 'nl-nl', messages: {} });