UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

44 lines 1.54 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var middleware_exports = {}; __export(middleware_exports, { BASE_PATH: () => BASE_PATH, COOKIE_NAME: () => COOKIE_NAME, HEADER_NAME: () => HEADER_NAME, NO_PREFIX: () => NO_PREFIX, PREFIX_DEFAULT: () => PREFIX_DEFAULT, SERVER_SET_COOKIE: () => SERVER_SET_COOKIE }); module.exports = __toCommonJS(middleware_exports); const HEADER_NAME = "x-intlayer-locale"; const COOKIE_NAME = "INTLAYER_LOCALE"; const PREFIX_DEFAULT = false; const BASE_PATH = ""; const SERVER_SET_COOKIE = "always"; const NO_PREFIX = false; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BASE_PATH, COOKIE_NAME, HEADER_NAME, NO_PREFIX, PREFIX_DEFAULT, SERVER_SET_COOKIE }); //# sourceMappingURL=middleware.cjs.map