From 2f02e9ea125c3ec42afac84ec903767930335dd3 Mon Sep 17 00:00:00 2001 From: Kimdonghan Date: Wed, 3 Dec 2025 18:27:43 +0900 Subject: (김동한) 메뉴명과 화면 내 h태그 일치 작업 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/items-tech/item-tech-container.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'components/items-tech') diff --git a/components/items-tech/item-tech-container.tsx b/components/items-tech/item-tech-container.tsx index 65e4ac93..38750658 100644 --- a/components/items-tech/item-tech-container.tsx +++ b/components/items-tech/item-tech-container.tsx @@ -12,6 +12,8 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { InformationButton } from "@/components/information/information-button" +import { useTranslation } from "@/i18n/client" +import { useParams } from "next/navigation" interface ItemType { id: string name: string @@ -29,7 +31,10 @@ export function ItemTechContainer({ const router = useRouter() const pathname = usePathname() const searchParamsObj = useSearchParams() - + + const params = useParams<{lng: string}>() + const lng = params?.lng ?? 'ko' + const {t} = useTranslation(lng, 'menu') // useSearchParams를 메모이제이션하여 안정적인 참조 생성 const searchParams = React.useMemo( () => searchParamsObj || new URLSearchParams(), @@ -57,7 +62,7 @@ export function ItemTechContainer({ {/* 왼쪽: 타이틀 & 설명 */}
-

자재 관리

+

{t('menu.tech_sales.items')}

{/*

-- cgit v1.2.3