Skip to content

@jsvision/i18n / formatCatalogIssue

Function: formatCatalogIssue()

formatCatalogIssue(issue): string

Defined in: issue-format.ts:32

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'] });