@inlang/paraglide-js
Version:
[](https://inlang.com)
17 lines • 527 B
TypeScript
/**
* Extracts a locale from a request.
*
* Use the function on the server to extract the locale
* from a request.
*
* The function goes through the strategies in the order
* they are defined. If a strategy returns an invalid locale,
* it will fall back to the next strategy.
*
* @example
* const locale = extractLocaleFromRequest(request);
*
* @type {(request: Request) => Locale}
*/
export const extractLocaleFromRequest: (request: Request) => Locale;
//# sourceMappingURL=extract-locale-from-request.d.ts.map