@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
28 lines (26 loc) • 809 B
JavaScript
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/nesting/nesting.ts
/**
* Function intended to be used to build intlayer dictionaries.
*
* Allow to extract the content of another dictionary and nest it in the current dictionary.
*
* Usage:
*
* ```ts
* nest("dictionaryKey");
* nest("dictionaryKey", "path.to.content");
* ```
*
* The order of the keys will define the priority of the content.
*
*/
const nesting = (dictionaryKey, path) => (0, _intlayer_types_nodeType.formatNodeType)(_intlayer_types_nodeType.NESTED, {
dictionaryKey,
path
});
//#endregion
exports.nest = nesting;
//# sourceMappingURL=nesting.cjs.map