Skip to content

Commit

Permalink
refactor: 优化翻译完成后的控制台输出信息
Browse files Browse the repository at this point in the history
- 在控制台输出中添加了源文件名(argv.input)
- 调整了输出信息的格式,使其更加清晰和完整
  • Loading branch information
h7ml committed Dec 14, 2024
1 parent 8f508db commit fb80347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async function main() {
modifiedContent = modifiedContent.slice(0, startOfLastLine).trim();
}
writeMarkdownFile(argv.output, modifiedContent);
console.log(`翻译完成。输出已保存到 ${argv.output}`);
console.log(`翻译 ${argv.input} 完成。输出已保存到 ${argv.output}`);
} else {
console.log('翻译失败。');
}
Expand Down

0 comments on commit fb80347

Please sign in to comment.