Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions tools/translator/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,23 @@ async function main() {
await writeFile(errorLogPath, errorDetails, 'utf-8');
}

consola.box(`
翻訳完了

成功: ${succeeded.length}件
失敗: ${failed.length}件
${failed.length > 0 ? '\n失敗したファイル:\n' + failed.map((r) => ` - ${r.file}`).join('\n') : ''}
${errorLogPath ? `\nエラー詳細: ${errorLogPath}` : ''}
`);
if (failed.length === 0) {
consola.success('翻訳完了');
} else {
consola.warn('翻訳完了(一部失敗)');
}

consola.info(`成功: ${succeeded.length}件`);
consola.info(`失敗: ${failed.length}件`);

if (failed.length > 0) {
console.log('\n失敗したファイル:');
failed.forEach((r) => console.log(r.file));
}

if (errorLogPath) {
consola.info(`エラー詳細: ${errorLogPath}`);
}

if (failed.length > 0) {
process.exit(1);
Expand Down