diff options
Diffstat (limited to 'components/bidding-projects/bid-projects-container.tsx')
| -rw-r--r-- | components/bidding-projects/bid-projects-container.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/components/bidding-projects/bid-projects-container.tsx b/components/bidding-projects/bid-projects-container.tsx index 9890a959..6d6638f6 100644 --- a/components/bidding-projects/bid-projects-container.tsx +++ b/components/bidding-projects/bid-projects-container.tsx @@ -12,6 +12,7 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { InformationButton } from "@/components/information/information-button" +import { useTranslation } from "@/i18n/client" interface ProjectType { id: string @@ -19,14 +20,17 @@ interface ProjectType { } interface BidProjectsContainerProps { + lng: string projectTypes: ProjectType[] children: React.ReactNode } export function BidProjectsContainer({ + lng, projectTypes, children, }: BidProjectsContainerProps) { + const { t } = useTranslation(lng, 'menu') const router = useRouter() const pathname = usePathname() const searchParamsObj = useSearchParams() @@ -41,7 +45,7 @@ export function BidProjectsContainer({ const projectType = searchParams.get("type") || "all" // 선택한 프로젝트 타입에 해당하는 이름 찾기 - const selectedProject = projectTypes.find((project) => project.id === projectType)?.name || "전체" + const selectedProject = projectTypes.find((project) => project.id === projectType)?.name || t('common.all') || "전체" // 프로젝트 타입 변경 핸들러 const handleProjectTypeChange = React.useCallback((value: string) => { @@ -66,7 +70,7 @@ export function BidProjectsContainer({ {/* 왼쪽: 타이틀 & 설명 */} <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('menu.master_data.bid_projects')}</h2> <InformationButton pagePath="evcp/bid-projects" /> </div> {/* <p className="text-muted-foreground"> |
