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