Skip to content

@jsvision/i18n / CreateI18nOptions

Interface: CreateI18nOptions ​

Defined in: types.ts:197

Options used to synchronously create an internationalization service.

Extended by ​

Properties ​

catalogs? ​

readonly optional catalogs?: readonly unknown[]

Defined in: types.ts:203

Ordered catalog layers; later layers win within the same locale.


diagnosticSink? ​

readonly optional diagnosticSink?: DiagnosticSink

Defined in: types.ts:205

Optional observer for each new recoverable diagnostic.


fallbackLocales? ​

readonly optional fallbackLocales?: readonly string[]

Defined in: types.ts:201

Ordered locale fallbacks. English remains the final implicit fallback.


locale? ​

readonly optional locale?: string

Defined in: types.ts:199

Explicit locale, or auto to opt into environment detection. Defaults to en.