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-history-dialog.tsx | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'lib/swp/table/swp-inbox-history-dialog.tsx') diff --git a/lib/swp/table/swp-inbox-history-dialog.tsx b/lib/swp/table/swp-inbox-history-dialog.tsx index fbb75f3c..e46829d0 100644 --- a/lib/swp/table/swp-inbox-history-dialog.tsx +++ b/lib/swp/table/swp-inbox-history-dialog.tsx @@ -217,7 +217,7 @@ export function SwpInboxHistoryDialog({ const handleCancelFile = async (file: SwpFileApiResponse) => { if (!file.BOX_SEQ || !file.ACTV_SEQ) { - toast.error("취소할 수 없는 파일입니다 (BOX_SEQ 또는 ACTV_SEQ 없음)"); + toast.error("File cannot be canceled (Missing BOX_SEQ or ACTV_SEQ)"); return; } @@ -236,13 +236,13 @@ export function SwpInboxHistoryDialog({ userId, }); - toast.success(`파일 취소 완료: ${file.FILE_NM}`); + toast.success(`File canceled: ${file.FILE_NM}`); // 취소된 파일로 마킹 (상태 변경) setCancelledFiles((prev) => new Set(prev).add(fileKey)); } catch (error) { - console.error("파일 취소 실패:", error); - toast.error("파일 취소에 실패했습니다"); + console.error("File cancel failed:", error); + toast.error("Failed to cancel file"); } finally { setCancellingFiles((prev) => { const newSet = new Set(prev); @@ -254,7 +254,7 @@ export function SwpInboxHistoryDialog({ 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)}`; @@ -262,10 +262,10 @@ export function SwpInboxHistoryDialog({ // 새 탭에서 다운로드 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"); } }; @@ -284,10 +284,10 @@ export function SwpInboxHistoryDialog({ - Document 전체 이력 + Document History {docNo && ( - {docNo} - 총 {documentFiles.length}개 파일 + {docNo} - Total {documentFiles.length} files )} @@ -299,7 +299,7 @@ export function SwpInboxHistoryDialog({
setSearchQuery(e.target.value)} className="pl-10" @@ -313,12 +313,12 @@ export function SwpInboxHistoryDialog({ {isAllExpanded ? ( <> - 일괄 닫기 + Collapse All ) : ( <> - 일괄 열기 + Expand All )} @@ -327,7 +327,7 @@ export function SwpInboxHistoryDialog({ {/* 검색 결과 안내 */} {searchQuery && (
- 검색 결과: {filteredFiles.length}개 파일 (전체 {documentFiles.length}개) + Search Results: {filteredFiles.length} files (Total {documentFiles.length})
)} @@ -358,7 +358,7 @@ export function SwpInboxHistoryDialog({ {revision.stage} - {revision.activities.length}개 그룹 / {revision.totalFiles}개 파일 + {revision.activities.length} groups / {revision.totalFiles} files
@@ -394,11 +394,11 @@ export function SwpInboxHistoryDialog({ ) : ( - Activity 없음 + No Activity )} - {activity.files.length}개 파일 + {activity.files.length} files @@ -463,12 +463,12 @@ export function SwpInboxHistoryDialog({ {isCancelling ? ( <> - 취소 중... + Canceling... ) : ( <> - 취소 + Cancel )} @@ -497,7 +497,7 @@ export function SwpInboxHistoryDialog({ ) : (
- {searchQuery ? "검색 결과가 없습니다" : "파일 정보가 없습니다"} + {searchQuery ? "No search results" : "No file information"}
)} -- cgit v1.2.3