import { logger } from "../config/dist/esm/logger.mjs";
import { resolveObjectPromises } from "../utils/resolveObjectPromises.mjs";

//#region ../@intlayer/chokidar/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs
/**
* Function to load, process the module and return the Intlayer Dictionary from the module file
*/
const processContentDeclaration = async (contentDeclaration) => {
	try {
		const content = await resolveObjectPromises(contentDeclaration.content);
		return {
			...contentDeclaration,
			content
		};
	} catch (error) {
		logger(error, { level: "error" });
	}
};

//#endregion
export { processContentDeclaration };
//# sourceMappingURL=processContentDeclaration.mjs.map