diff options
| author | Kimdonghan <dh32110@gmail.com> | 2025-12-03 18:27:43 +0900 |
|---|---|---|
| committer | Kimdonghan <dh32110@gmail.com> | 2025-12-03 18:27:43 +0900 |
| commit | 2f02e9ea125c3ec42afac84ec903767930335dd3 (patch) | |
| tree | 70f8e0ee57f868d29e7a338db49c5cf228468376 /components/items-tech | |
| parent | 7b2718ba47b69ed4b1bf20977cebe93393191839 (diff) | |
(김동한) 메뉴명과 화면 내 h태그 일치 작업
Diffstat (limited to 'components/items-tech')
| -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">
|
