diff options
Diffstat (limited to 'components/items-tech/item-tech-container.tsx')
| -rw-r--r-- | components/items-tech/item-tech-container.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
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({ {/* 왼쪽: 타이틀 & 설명 */}
<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.tech_sales.items')}</h2>
<InformationButton pagePath="evcp/items-tech" />
</div>
{/* <p className="text-muted-foreground">
|
