Skip to content

Runtime / server: ScopedI18nRunner

Functions, types, and exports for Runtime / server: ScopedI18nRunner.

Page outline

Runs adapter dispatch inside one resolved request-local i18n scope.

import type { ScopedI18nRunner } from "@palamedes/runtime/server"

type ScopedI18nRunner<T extends I18nInstance = I18nInstance> = {
    run<Result>(request: Request, next: (i18n: T) => Result | Promise<Result>): Promise<Result>;
    scope: ServerI18nScope<T>;
};

Properties

NameTypeRequired
scopeServerI18nScope<T>Yes

run

run<Result>(request: Request, next: (i18n: T) => Result | Promise<Result>): Promise<Result>

Parameters

NameTypeRequired
requestRequestYes
next(i18n: T) => Result | Promise<Result>Yes

Returns

Promise<Result>

Source entry on GitHub

Last updated: November 1, 2026