const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
let __intlayer_core = require("@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 (0, __intlayer_core.localeDetector)(negotiatorHeaders);
};

//#endregion
exports.localeDetector = localeDetector;
//# sourceMappingURL=localeDetector.cjs.map