UNPKG

@inlang/paraglide-js

Version:

[![Inlang-ecosystem compatibility badge](https://cdn.jsdelivr.net/gh/opral/monorepo@main/inlang/assets/md-badges/inlang.svg)](https://inlang.com)

17 lines 527 B
/** * 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