Skip to content

@jsvision/i18n / validateCatalog

Function: validateCatalog() ​

validateCatalog(input, options?): readonly CatalogIssue[]

Defined in: validation.ts:588

Validate one untrusted catalog without throwing.

Parameters ​

input ​

unknown

Candidate schema-1 catalog.

options? ​

CatalogValidationOptions = {}

Completeness, accelerator, and value-free source metadata.

Returns ​

readonly CatalogIssue[]

Immutable, stably sorted structural issues.

Example ​

ts
const issues = validateCatalog({ schema: 1, locale: 'en', messages: {} });