UNPKG

@intlayer/core

Version:

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

25 lines (23 loc) 547 B
import { NodeType, formatNodeType } from "@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) => formatNodeType(NodeType.Gender, content); //#endregion export { gender }; //# sourceMappingURL=gender.mjs.map