Skip to content

Core: CreateI18nOptions

Functions, types, and exports for Core: CreateI18nOptions.

Page outline
import type { CreateI18nOptions } from "@palamedes/core"

type CreateI18nOptions = {
    locale?: string;
    /** Use the same IANA time zone on the server and client for hydration. */
    timeZone?: string;
    /** Observes a missing dependency. Rendering still throws after this hook. */
    onMissing?: (info: MissingMessageInfo) => void;
    /** Observes execution failures. Rendering still throws after this hook. */
    onError?: (info: MessageFormatErrorInfo) => void;
};

Properties

NameTypeRequiredDescription
localestringNo
timeZonestringNoUse the same IANA time zone on the server and client for hydration.
onMissing(info: MissingMessageInfo) => voidNoObserves a missing dependency. Rendering still throws after this hook.
onError(info: MessageFormatErrorInfo) => voidNoObserves execution failures. Rendering still throws after this hook.

Source entry on GitHub

Last updated: November 1, 2026