Skip to content

@jsvision/ui / validateCatalog

Function: validateCatalog()

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

Defined in: i18n/dist/validation.d.ts:14

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: {} });