Skip to main content

Function: getRequestLocale()

getRequestLocale(context): string | undefined

Defined in: i18n.ts:23

The Accept-Language header of the AppSync request, which the client sends like any other header. Header names are matched case-insensitively.

Parameters​

ParameterType
context{ request?: { headers?: Record<string, unknown>; } | null; }
context.request?{ headers?: Record<string, unknown>; } | null

Returns​

string | undefined