const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
const require_built = require('../@intlayer/config/dist/esm/built.cjs');
const require_serverContext = require('./serverContext.cjs');
let react_jsx_runtime = require("react/jsx-runtime");

//#region ../react-intlayer/dist/esm/server/IntlayerServerProvider.mjs
const { defaultLocale } = require_built.built_default?.internationalization ?? {};
/**
* Context that store the current locale on the server side
*/
const IntlayerServerContext = require_serverContext.createServerContext(defaultLocale);
/**
* Get the current locale
*/
const locale = require_serverContext.getServerContext(IntlayerServerContext);
/**
* Provider that store the current locale on the server side
*/
const IntlayerServerProvider = ({ children, locale: locale$1 = defaultLocale }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IntlayerServerContext.Provider, {
	value: locale$1,
	children
});

//#endregion
exports.IntlayerServerContext = IntlayerServerContext;
exports.IntlayerServerProvider = IntlayerServerProvider;
exports.locale = locale;
//# sourceMappingURL=IntlayerServerProvider.cjs.map