import { built_default } from "../config/dist/esm/built.mjs";
import { getLocaleName } from "../core/dist/esm/localization/getLocaleName.mjs";
import { locales_exports } from "../types/dist/esm/locales.mjs";
import { relative } from "node:path";
import { ANSIColors, colorize, colorizePath } from "@intlayer/config";

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

//#endregion
export { formatLocale, formatPath };
//# sourceMappingURL=formatter.mjs.map