Skip to content

TanStack Start: TanStackServerI18nRequestMiddlewareOptions

Functions, types, and exports for TanStack Start: TanStackServerI18nRequestMiddlewareOptions.

Page outline
import type { TanStackServerI18nRequestMiddlewareOptions } from "@palamedes/tanstack"

type TanStackServerI18nRequestMiddlewareOptions = {
    /** Pick the locale for a request, for example from a cookie, path segment, or host. */
    readonly resolveLocale: TanStackLocaleResolver;
    /** Formatting options for the request's i18n instance, or a function that returns them. */
    readonly i18nOptions?: TanStackI18nOptions | TanStackI18nOptionsResolver;
    /** Adapter-owned production HTML catalog delivery, or `false` to leave HTML unchanged. */
    readonly catalogDelivery?: TanStackCatalogDeliveryOptions | false;
    /** Message of the error thrown when the request's locale or catalog cannot be loaded. */
    readonly failureMessage?: string;
};

Properties

NameTypeRequiredDescription
resolveLocaleTanStackLocaleResolverYesReadonly. Pick the locale for a request, for example from a cookie, path segment, or host.
i18nOptionsTanStackI18nOptions | TanStackI18nOptionsResolverNoReadonly. Formatting options for the request's i18n instance, or a function that returns them.
catalogDeliveryTanStackCatalogDeliveryOptions | falseNoReadonly. Adapter-owned production HTML catalog delivery, or false to leave HTML unchanged.
failureMessagestringNoReadonly. Message of the error thrown when the request's locale or catalog cannot be loaded.

Source entry on GitHub

Last updated: November 1, 2026