UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

14 lines 544 B
/** * Extracts a locale from the accept-language header. * * Use the function on the server to extract the locale * from the accept-language header that is sent by the client. * * @example * const locale = extractLocaleFromHeader(request); * * @param {Request} request - The request object to extract the locale from. * @returns {Locale | undefined} The negotiated preferred language. */ export declare function extractLocaleFromHeader(request: Request): Locale | undefined; //# sourceMappingURL=extract-locale-from-header.d.ts.map