From 95984e67b8d57fbe1431fcfedf3bb682f28416b3 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 27 Nov 2025 17:48:28 +0900 Subject: (김준회) swp 영문 처리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/swp/table/swp-inbox-table.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'lib/swp/table/swp-inbox-table.tsx') diff --git a/lib/swp/table/swp-inbox-table.tsx b/lib/swp/table/swp-inbox-table.tsx index d070f2fd..788fcb70 100644 --- a/lib/swp/table/swp-inbox-table.tsx +++ b/lib/swp/table/swp-inbox-table.tsx @@ -389,7 +389,7 @@ export function SwpInboxTable({ // 선택된 파일 일괄 취소 const handleBulkCancel = async () => { if (selectedFiles.size === 0) { - toast.error("취소할 파일을 선택해주세요"); + toast.error("Please select files to cancel"); return; } @@ -398,12 +398,12 @@ export function SwpInboxTable({ ); if (filesToCancel.length === 0) { - toast.error("취소할 파일이 없습니다"); + toast.error("No files to cancel"); return; } try { - toast.info(`${filesToCancel.length}개 파일 취소 중...`); + toast.info(`Canceling ${filesToCancel.length} files...`); // 병렬 취소 const cancelPromises = filesToCancel.map((row) => @@ -416,21 +416,21 @@ export function SwpInboxTable({ await Promise.all(cancelPromises); - toast.success(`${filesToCancel.length}개 파일 취소 완료`); + toast.success(`Canceled ${filesToCancel.length} files`); setSelectedFiles(new Set()); // 선택 초기화 // 페이지 리프레시 window.location.reload(); } catch (error) { - console.error("일괄 취소 실패:", error); - toast.error("일부 파일 취소에 실패했습니다"); + console.error("Bulk cancel failed:", error); + toast.error("Failed to cancel some files"); } }; const handleDownloadFile = async (file: SwpFileApiResponse) => { try { - toast.info("파일 다운로드 준비 중..."); + toast.info("Preparing file download..."); // API route를 통해 다운로드 const downloadUrl = `/api/swp/download/${encodeURIComponent(file.OWN_DOC_NO)}?projNo=${encodeURIComponent(projNo)}&fileName=${encodeURIComponent(file.FILE_NM)}`; @@ -438,10 +438,10 @@ export function SwpInboxTable({ // 새 탭에서 다운로드 window.open(downloadUrl, "_blank"); - toast.success(`파일 다운로드 시작: ${file.FILE_NM}`); + toast.success(`File download started: ${file.FILE_NM}`); } catch (error) { - console.error("파일 다운로드 실패:", error); - toast.error("파일 다운로드에 실패했습니다"); + console.error("File download failed:", error); + toast.error("Failed to download file"); } }; @@ -477,7 +477,7 @@ export function SwpInboxTable({ if (files.length === 0 && requiredDocs.length === 0) { return (
- 업로드한 파일이 없습니다. + No uploaded files.
); } @@ -493,7 +493,7 @@ export function SwpInboxTable({ onClick={() => setSelectedStatus(null)} className="h-9" > - 전체 ({files.length + requiredDocs.length}) + All ({files.length + requiredDocs.length}) {statusCounts.map((statusCount) => (