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-table-columns.tsx | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

(limited to 'lib/swp/table/swp-table-columns.tsx')

diff --git a/lib/swp/table/swp-table-columns.tsx b/lib/swp/table/swp-table-columns.tsx
index 261cf960..9cb645a5 100644
--- a/lib/swp/table/swp-table-columns.tsx
+++ b/lib/swp/table/swp-table-columns.tsx
@@ -11,10 +11,10 @@ import { toast } from "sonner";
 export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   {
     accessorKey: "LTST_ACTV_STAT",
-    header: "상태",
+    header: "Status",
     cell: ({ row }) => {
       const status = row.original.LTST_ACTV_STAT;
-      if (!status) return "-";
+      if (!status) return "Waiting";
 
       const color =
         status.includes("Complete") ? "bg-green-100 text-green-800" :
@@ -54,7 +54,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "DOC_TITLE",
-    header: "문서제목",
+    header: "Document Title",
     cell: ({ row }) => (
       <div className="truncate" title={row.original.DOC_TITLE}>
         {row.original.DOC_TITLE}
@@ -66,7 +66,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "PROJ_NO",
-    header: "프로젝트",
+    header: "Project",
     cell: ({ row }) => (
       <div>
         <div className="font-medium">{row.original.PROJ_NO}</div>
@@ -83,7 +83,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "PKG_NO",
-    header: "패키지",
+    header: "Package",
     cell: ({ row }) => row.original.PKG_NO || "-",
     size: 100,
     minSize: 100,
@@ -91,7 +91,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "VNDR_CD",
-    header: "업체",
+    header: "Vendor",
     cell: ({ row }) => (
       <div>
         {row.original.VNDR_CD && (
@@ -110,7 +110,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "STAGE",
-    header: "최신 스테이지",
+    header: "Latest Stage",
     cell: ({ row }) => {
       const stage = row.original.STAGE;
       if (!stage) return "-";
@@ -132,7 +132,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
   },
   {
     accessorKey: "LTST_REV_NO",
-    header: "최신 REV",
+    header: "Latest REV",
     cell: ({ row }) => row.original.LTST_REV_NO || "-",
     size: 100,
     minSize: 100,
@@ -141,7 +141,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
 
   {
     id: "actions",
-    header: "커버페이지 다운로드",
+    header: "Download Cover Page",
     cell: function ActionCell({ row }) {
       const [isDownloading, setIsDownloading] = React.useState(false);
 
@@ -152,7 +152,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
         const projectCode = row.original.PROJ_NO;
 
         if (!docNumber || !projectCode) {
-          toast.error("문서 번호 또는 프로젝트 정보가 없습니다.");
+          toast.error("Missing document number or project information.");
           return;
         }
 
@@ -165,7 +165,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
           );
           
           if (!projectIdResponse.ok) {
-            toast.error("프로젝트 정보를 찾을 수 없습니다.");
+            toast.error("Project information not found.");
             return;
           }
 
@@ -178,7 +178,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
 
           if (!response.ok) {
             const error = await response.json();
-            throw new Error(error.message || "커버페이지 다운로드 실패");
+            throw new Error(error.message || "Failed to download cover page");
           }
 
           // 3. 파일 다운로드
@@ -192,14 +192,14 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
           window.URL.revokeObjectURL(url);
           document.body.removeChild(a);
 
-          toast.success("커버페이지 다운로드가 시작되었습니다.");
+          toast.success("Cover page download started.");
 
         } catch (error) {
           console.error("커버페이지 다운로드 오류:", error);
           toast.error(
             error instanceof Error 
               ? error.message 
-              : "커버페이지 다운로드 중 오류가 발생했습니다."
+              : "An error occurred while downloading the cover page."
           );
         } finally {
           setIsDownloading(false);
@@ -213,7 +213,7 @@ export const swpDocumentColumns: ColumnDef<DocumentListItem>[] = [
           onClick={handleDownloadCover}
           disabled={isDownloading}
           className="h-8 w-8 p-0"
-          title="커버페이지 다운로드"
+          title="Download Cover Page"
         >
           {isDownloading ? (
             <Loader2 className="h-4 w-4 animate-spin" />
-- 
cgit v1.2.3

