next-intl-scanner
Version:
A tool to extract and manage translations from Next.js projects using next-intl
29 lines (28 loc) • 953 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const chalk_1 = __importDefault(require("chalk"));
const commander_1 = require("commander");
function LoggerC() {
return {
info: function (message = "") {
console.log(chalk_1.default.cyanBright(message));
},
warn: function (message = "") {
console.log(chalk_1.default.yellowBright(message));
},
error: function (message = "") {
console.log(chalk_1.default.redBright(message));
},
outPutHelp: function () {
commander_1.program.outputHelp();
},
success: function (message = "") {
console.log(chalk_1.default.greenBright(message));
},
};
}
const Logger = LoggerC();
exports.default = Logger;