Reference

detectLocale

Detects the request locale from the URL path or Accept-Language header.

Signature

function detectLocale<Locale>(request: Request, options: LocaleRoutingOptions<Locale>): DetectedLocale<Locale>