const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.cjs');
const require_built = require('../config/dist/esm/built.cjs');
const require_getLocaleName = require('../core/dist/esm/localization/getLocaleName.cjs');
const require_locales = require('../types/dist/esm/locales.cjs');
const require_logger = require('../../../../../../../config/dist/esm/logger.cjs');
let node_path = require("node:path");

//#region ../@intlayer/cli/dist/esm/chokidar/dist/esm/utils/formatter.mjs
const formatPath = (path, color) => [path].flat().map((path$1) => path$1.startsWith("/") ? (0, node_path.relative)(require_built.built_default.content.baseDir, path$1) : path$1).map((relativePath) => color === false ? relativePath : require_logger.colorizePath(relativePath, color)).join(`, `);
const formatLocale = (locale, color = require_logger.ANSIColors.GREEN) => [locale].flat().map((locale$1) => `${require_getLocaleName.getLocaleName(locale$1, require_locales.locales_exports.ENGLISH)} (${locale$1})`).map((text) => color === false ? text : require_logger.colorize(text, color)).join(`, `);

//#endregion
exports.formatLocale = formatLocale;
exports.formatPath = formatPath;
//# sourceMappingURL=formatter.cjs.map