Skip to content

@jsvision/i18n / I18nDiagnostic

Interface: I18nDiagnostic

Defined in: types.ts:127

One recoverable translation fault retained by a service.

Diagnostics contain identities only. Parameter values and translated text are never captured.

Properties

code

readonly code: I18nCode

Defined in: types.ts:129

Machine-stable diagnostic category.


key

readonly key: string

Defined in: types.ts:133

Message key involved in the fault.


locale

readonly locale: string

Defined in: types.ts:135

Locale being evaluated when the fault occurred.


severity

readonly severity: "warning"

Defined in: types.ts:131

Runtime diagnostics are warnings because translation returns a safe fallback.


source?

readonly optional source?: string

Defined in: types.ts:137

Optional source identifier inherited from the catalog layer.