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
| Name | Type | Required | Description |
|---|---|---|---|
locale | string | No | |
timeZone | string | No | Use the same IANA time zone on the server and client for hydration. |
onMissing | (info: MissingMessageInfo) => void | No | Observes a missing dependency. Rendering still throws after this hook. |
onError | (info: MessageFormatErrorInfo) => void | No | Observes execution failures. Rendering still throws after this hook. |
Last updated: November 1, 2026