Skip to content

Runtime / node: NodeI18nOptions

Functions, types, and exports for Runtime / node: NodeI18nOptions.

Page outline

Options for one request-local i18n instance.

import type { NodeI18nOptions } from "@palamedes/runtime/node"

type NodeI18nOptions = CreateI18nOptions & {
    /** The active locale selected by the host's request policy. */
    readonly locale: string;
};

Properties

NameTypeRequiredDescription
localestringYesReadonly. The active locale selected by the host's request policy.
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