summaryrefslogtreecommitdiff
path: root/components/document-lists/vendor-doc-list-client.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-14 11:54:47 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-14 11:54:47 +0000
commit969c25b56f6d29d7ffa4bc2ce04c5fb4e5846b34 (patch)
tree551d335e850e6163792ded0e7a75fa41d96d612a /components/document-lists/vendor-doc-list-client.tsx
parentdd20ba9785cdbd3d61f6b014d003d3bd9646ad13 (diff)
(대표님) 정규벤더등록, 벤더문서관리, 벤더데이터입력, 첨부파일관리
Diffstat (limited to 'components/document-lists/vendor-doc-list-client.tsx')
-rw-r--r--components/document-lists/vendor-doc-list-client.tsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/components/document-lists/vendor-doc-list-client.tsx b/components/document-lists/vendor-doc-list-client.tsx
index 0c4af106..4aa00ad7 100644
--- a/components/document-lists/vendor-doc-list-client.tsx
+++ b/components/document-lists/vendor-doc-list-client.tsx
@@ -5,6 +5,7 @@ import { useRouter, useParams } from "next/navigation"
import DocumentContainer from "@/components/documents/document-container"
import { ProjectInfo, ProjectSwitcher } from "@/components/documents/project-swicher"
import { InformationButton } from "@/components/information/information-button"
+import { useTranslation } from "@/i18n/client"
interface VendorDocumentsClientProps {
projects: ProjectInfo[]
children: React.ReactNode
@@ -16,6 +17,8 @@ export default function VendorDocumentListClient({
}: VendorDocumentsClientProps) {
const router = useRouter()
const params = useParams()
+ const lng = (params?.lng as string) || "ko"
+ const { t } = useTranslation(lng, "engineering")
// Get the contractId from route parameters
const contractIdFromUrl = React.useMemo(() => {
@@ -51,7 +54,7 @@ export default function VendorDocumentListClient({
setProjectType("plant")
// Navigate to the contract's documents page
- router.push(`/partners/document-list-only/${contractId}?projectType=plant`)
+ router.push(`/${lng}/partners/document-list-only/${contractId}?projectType=plant`)
}
return (
@@ -61,15 +64,15 @@ export default function VendorDocumentListClient({
{/* 왼쪽: 타이틀 & 설명 */}
<div>
<div className="flex items-center gap-2">
- <h2 className="text-2xl font-bold tracking-tight">협력업체 문서 리스트 관리</h2>
+ <h2 className="text-2xl font-bold tracking-tight">{t("vendorDocuments.title")}</h2>
<InformationButton pagePath="partners/document-list" />
</div>
- {/* <p className="text-muted-foreground">
+ <p className="text-muted-foreground">
{projectType === "ship"
- ? "삼성중공업 문서시스템으로부터 목록을 가져오고 문서 파일을 등록하여 삼성중공업으로 전달할 수 있습니다."
- : "문서리스트와 이슈스테이지를 생성하고 관리할 수 있으며 문서 파일을 등록하여 삼성중공업으로 전달할 수 있습니다."
+ ? t("vendorDocuments.shipDescription")
+ : t("vendorDocuments.plantDescription")
}
- </p> */}
+ </p>
</div>
{/* 오른쪽: ProjectSwitcher */}