feat: translate comments and logs to English for better accessibility
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import { logSuccess, logInfo } from './logger';
|
||||
|
||||
/** Crea la estructura de directorios necesaria para Clean Architecture (idempotente). */
|
||||
/** Creates the required Clean Architecture directory structure (idempotent). */
|
||||
export function createDirectoryStructure(baseDir: string): void {
|
||||
const dirs = [
|
||||
path.join(baseDir, 'data/dtos'),
|
||||
@@ -19,13 +19,13 @@ export function createDirectoryStructure(baseDir: string): void {
|
||||
fs.ensureDirSync(dir);
|
||||
});
|
||||
|
||||
logSuccess('Estructura de directorios creada');
|
||||
logSuccess('Directory structure created');
|
||||
}
|
||||
|
||||
/** Elimina un directorio temporal y todo su contenido. */
|
||||
/** Removes a temporary directory and all its contents. */
|
||||
export function cleanup(tempDir: string): void {
|
||||
if (fs.existsSync(tempDir)) {
|
||||
fs.removeSync(tempDir);
|
||||
logInfo('Archivos temporales eliminados');
|
||||
logInfo('Temporary files removed');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user