UNPKG

intlayer

Version:

Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.

91 lines 3.57 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; 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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var index_exports = {}; __export(index_exports, { cond: () => import_core.cond, configuration: () => import_built.default, enu: () => import_core.enu, file: () => import_file.file, getConfiguration: () => getConfiguration, getDictionary: () => import_core.getDictionary, getEnumeration: () => import_core.getEnumeration, getEnumerationContent: () => import_core.getEnumeration, getHTMLTextDir: () => import_core.getHTMLTextDir, getIntlayer: () => import_core.getIntlayer, getIntlayerAsync: () => import_core.getIntlayerAsync, getLocaleLang: () => import_core.getLocaleLang, getLocaleName: () => import_core.getLocaleName, getLocalizedUrl: () => import_core.getLocalizedUrl, getMultilingualUrls: () => import_core.getMultilingualUrls, getNesting: () => import_core.getNesting, getPathWithoutLocale: () => import_core.getPathWithoutLocale, getTranslation: () => import_core.getTranslation, getTranslationContent: () => import_core.getTranslation, insert: () => import_core.insert, localeList: () => import_core.localeList, md: () => import_core.md, nest: () => import_core.nest, t: () => import_core.t }); module.exports = __toCommonJS(index_exports); __reExport(index_exports, require("@intlayer/config/client"), module.exports); var import_built = __toESM(require("@intlayer/config/built")); var import_core = require("@intlayer/core"); var import_file = require("@intlayer/core/file"); const getConfiguration = () => import_built.default; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { cond, configuration, enu, file, getConfiguration, getDictionary, getEnumeration, getEnumerationContent, getHTMLTextDir, getIntlayer, getIntlayerAsync, getLocaleLang, getLocaleName, getLocalizedUrl, getMultilingualUrls, getNesting, getPathWithoutLocale, getTranslation, getTranslationContent, insert, localeList, md, nest, t, ...require("@intlayer/config/client") }); //# sourceMappingURL=index.cjs.map