@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
28 lines (26 loc) • 751 B
JavaScript
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
let __intlayer_types = require("@intlayer/types");
//#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.formatNodeType)(__intlayer_types.NodeType.Enumeration, content);
//#endregion
exports.enu = enumeration;
//# sourceMappingURL=enumeration.cjs.map