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
| Name | Type | Required | Description |
|---|---|---|---|
resolveLocale | TanStackLocaleResolver | Yes | Readonly. Pick the locale for a request, for example from a cookie, path segment, or host. |
i18nOptions | TanStackI18nOptions | TanStackI18nOptionsResolver | No | Readonly. Formatting options for the request's i18n instance, or a function that returns them. |
catalogDelivery | TanStackCatalogDeliveryOptions | false | No | Readonly. Adapter-owned production HTML catalog delivery, or false to leave HTML unchanged. |
failureMessage | string | No | Readonly. Message of the error thrown when the request's locale or catalog cannot be loaded. |
Last updated: November 1, 2026