@jsvision/i18n / validateCatalog
Function: validateCatalog()
validateCatalog(
input,options?): readonlyCatalogIssue[]
Defined in: validation.ts:588
Validate one untrusted catalog without throwing.
Parameters
input
unknown
Candidate schema-1 catalog.
options?
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: {} });