import { localeDetector as localeDetector$1 } from "@intlayer/core";

//#region src/proxy/localeDetector.ts
/**
* Detects the locale from the request headers
*
* Headers are provided by the browser and can be used to determine the user's preferred language
*/
const localeDetector = (request) => {
	const negotiatorHeaders = {};
	request.headers.forEach((value, key) => {
		negotiatorHeaders[key] = value;
	});
	return localeDetector$1(negotiatorHeaders);
};

//#endregion
export { localeDetector };
//# sourceMappingURL=localeDetector.mjs.map