default: (
params: GetRequestConfigParams,
) => RequestConfig | Promise<RequestConfig>
Type Declaration
- (params: GetRequestConfigParams): RequestConfig | Promise<RequestConfig>
Parameters
- params: GetRequestConfigParams
Returns RequestConfig | Promise<RequestConfig>
Loads the message catalog for the active locale on every Server Component request. Falls back to the default locale when the requested one is not supported (defensive — the middleware should already validate it).