@intlayer/chokidar
Version:
Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.
21 lines • 528 B
JavaScript
import { logger } from "@intlayer/config/client";
import { resolveObjectPromises } from "../../../utils/resolveObjectPromises.mjs";
const processContentDeclaration = async (contentDeclaration) => {
try {
const content = await resolveObjectPromises(
contentDeclaration.content
);
return {
...contentDeclaration,
content
};
} catch (error) {
logger(error, {
level: "error"
});
}
};
export {
processContentDeclaration
};
//# sourceMappingURL=processContentDeclaration.mjs.map