UNPKG

@intlayer/core

Version:

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

27 lines (25 loc) 753 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/gender/gender.ts /** * Function intended to be used to build intlayer dictionaries. * * Allow to pick a content based on a gender. * * Usage: * * ```ts * gender({ * 'true': 'The gender is validated', * 'false': 'The gender is not validated', * }); * ``` * * The last key provided will be used as the fallback value. * */ const gender = (content) => (0, _intlayer_types_nodeType.formatNodeType)(_intlayer_types_nodeType.GENDER, content); //#endregion exports.gender = gender; //# sourceMappingURL=gender.cjs.map