Skip to main content

Function: getRequestLocale()

getRequestLocale(): string | undefined

Defined in: context.ts:42

The Accept-Language header of the current MCP request, or undefined outside a request or when the client sent none. The default locale source for createGatedToolRegistrar's i18n option.

Returns​

string | undefined