Skip to content

@jsvision/ui / formatCatalogIssue

Function: formatCatalogIssue()

formatCatalogIssue(issue): string

Defined in: i18n/dist/issue-format.d.ts:16

Format a structural issue without including translated text or parameter values.

Unsafe identifier characters are escaped so a malformed catalog cannot inject terminal state into CI output.

Parameters

issue

CatalogIssue

Catalog issue to render.

Returns

string

Stable single-line CI representation.

Example

ts
formatCatalogIssue({ code: 'INVALID_KEY', severity: 'error', path: ['messages', 'Bad'] });