UNPKG

@intlayer/core

Version:

Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.

29 lines (27 loc) 840 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const require_runtime = require('../../_virtual/_rolldown/runtime.cjs'); let _intlayer_types_nodeType = require("@intlayer/types/nodeType"); //#region src/transpiler/enumeration/enumeration.ts /** * Function intended to be used to build intlayer dictionaries. * * Allow to pick a content based on a quantity. * * Usage: * * ```ts * enu({ * '<=-2.3': 'You have less than -2.3', * '<1': 'You have less than one', * '2': 'You have two', * '>=3': 'You have three or more', * }); * ``` * * > The order of the keys will define the priority of the content. * */ const enumeration = (content) => (0, _intlayer_types_nodeType.formatNodeType)(_intlayer_types_nodeType.ENUMERATION, content); //#endregion exports.enu = enumeration; //# sourceMappingURL=enumeration.cjs.map