import { built_default } from "../@intlayer/config/dist/esm/built.mjs";
import { createServerContext, getServerContext } from "./serverContext.mjs";
import { jsx } from "react/jsx-runtime";

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

//#endregion
export { IntlayerServerContext, IntlayerServerProvider, locale };
//# sourceMappingURL=IntlayerServerProvider.mjs.map