From cbb4c7fe0b94459162ad5e998bc05cd293e0ff96 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 11 Aug 2025 09:02:00 +0000
Subject: (대표님) 입찰, EDP 변경사항 대응, spreadJS 오류 수정, 벤더실사 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/form-data/form-data-table.tsx | 33 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

(limited to 'components/form-data/form-data-table.tsx')

diff --git a/components/form-data/form-data-table.tsx b/components/form-data/form-data-table.tsx
index 9936e870..be37de7a 100644
--- a/components/form-data/form-data-table.tsx
+++ b/components/form-data/form-data-table.tsx
@@ -172,7 +172,7 @@ export default function DynamicTable({
   const params = useParams();
   const router = useRouter();
   const lng = (params?.lng as string) || "ko";
-  const { t } = useTranslation(lng, "translation");
+  const { t } = useTranslation(lng, "engineering");
 
   const [rowAction, setRowAction] =
     React.useState<DataTableRowAction<GenericData> | null>(null);
@@ -719,7 +719,7 @@ export default function DynamicTable({
             onClick={handleBatchDelete}
           >
             <Trash2 className="mr-2 size-4" />
-            Delete ({selectedRowCount})
+            {t("buttons.delete")} ({selectedRowCount})
           </Button>
         )}
 
@@ -733,7 +733,7 @@ export default function DynamicTable({
                   <Loader className="mr-2 size-4 animate-spin" aria-hidden="true" />
                 )}
                 <TagsIcon className="size-4" />
-                Tag Operations
+                {t("buttons.tagOperations")}
               </Button>
             </DropdownMenuTrigger>
             <DropdownMenuContent align="end">
@@ -741,12 +741,12 @@ export default function DynamicTable({
               {mode === "IM" ? (
                 <DropdownMenuItem onClick={handleSyncTags} disabled={isAnyOperationPending}>
                   <Tag className="mr-2 h-4 w-4" />
-                  Sync Tags
+                  {t("buttons.syncTags")}
                 </DropdownMenuItem>
               ) : (
                 <DropdownMenuItem onClick={handleGetTags} disabled={isAnyOperationPending}>
                   <RefreshCcw className="mr-2 h-4 w-4" />
-                  Get Tags
+                  {t("buttons.getTags")}
                 </DropdownMenuItem>
               )}
               <DropdownMenuItem 
@@ -754,7 +754,7 @@ export default function DynamicTable({
                 disabled={isAnyOperationPending || isAddTagDisabled}
               >
                 <Plus className="mr-2 h-4 w-4" />
-                Add Tags
+                {t("buttons.addTags")}
               </DropdownMenuItem>
             </DropdownMenuContent>
           </DropdownMenu>
@@ -764,17 +764,17 @@ export default function DynamicTable({
             <DropdownMenuTrigger asChild>
               <Button variant="outline" size="sm" disabled={isAnyOperationPending}>
                 <Clipboard className="size-4" />
-                Report Operations
+                {t("buttons.reportOperations")}
               </Button>
             </DropdownMenuTrigger>
             <DropdownMenuContent align="end">
               <DropdownMenuItem onClick={() => setTempUpDialog(true)} disabled={isAnyOperationPending}>
                 <Upload className="mr-2 h-4 w-4" />
-                Upload Template
+                {t("buttons.uploadTemplate")}
               </DropdownMenuItem>
               <DropdownMenuItem onClick={handleBatchDocument} disabled={isAnyOperationPending}>
                 <FileOutput className="mr-2 h-4 w-4" />
-                Batch Document
+                {t("buttons.batchDocument")}
                 {selectedRowCount > 0 && (
                   <span className="ml-2 text-xs bg-blue-100 text-blue-700 px-2 py-1 rounded">
                     {selectedRowCount}
@@ -792,7 +792,7 @@ export default function DynamicTable({
               ) : (
                 <Upload className="size-4" />
               )}
-              Import
+              {t("buttons.import")}
               <input
                 type="file"
                 accept=".xlsx,.xls"
@@ -815,10 +815,10 @@ export default function DynamicTable({
             ) : (
               <Download className="mr-2 size-4" />
             )}
-            Export
+            {t("buttons.export")}
           </Button>
 
-          {/* 새로 추가된 Template 보기 버튼 */}
+          {/* Template 보기 버튼 */}
           <Button
             variant="outline"
             size="sm"
@@ -830,10 +830,9 @@ export default function DynamicTable({
             ) : (
               <Eye className="mr-2 size-4" />
             )}
-            View Template
+            {t("buttons.viewTemplate")}
           </Button>
 
-
           {/* COMPARE WITH SEDP 버튼 */}
           <Button
             variant="outline"
@@ -842,7 +841,7 @@ export default function DynamicTable({
             disabled={isAnyOperationPending}
           >
             <GitCompareIcon className="mr-2 size-4" />
-            Compare with SEDP
+            {t("buttons.compareWithSEDP")}
           </Button>
 
           {/* SEDP 전송 버튼 */}
@@ -855,12 +854,12 @@ export default function DynamicTable({
             {isSendingSEDP ? (
               <>
                 <Loader className="mr-2 size-4 animate-spin" />
-                SEDP 전송 중...
+                {t("messages.sendingSEDP")}
               </>
             ) : (
               <>
                 <Send className="size-4" />
-                Send to SHI
+                {t("buttons.sendToSHI")}
               </>
             )}
           </Button>
-- 
cgit v1.2.3

