@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
27 lines (25 loc) • 720 B
JavaScript
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
let __intlayer_types = require("@intlayer/types");
//#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.formatNodeType)(__intlayer_types.NodeType.Nested, {
dictionaryKey,
path
});
//#endregion
exports.nest = nesting;
//# sourceMappingURL=nesting.cjs.map