Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 813 Bytes

next-context_i18n.middleware.md

File metadata and controls

51 lines (25 loc) · 813 Bytes

Home > next-context/i18n > middleware

middleware() function

i18n next-context middleware

Signature:

export declare function middleware(config: (ctx: NextContext) => Promise<I18nConfig>): (ctx: NextContext, next: NextFunction) => Promise<void>;

Parameters

Parameter

Type

Description

config

(ctx: NextContext) => Promise<I18nConfig>

**Returns:**

(ctx: NextContext, next: NextFunction) => Promise<void>