diff options
| author | joonhoekim <26rote@gmail.com> | 2025-12-02 20:04:17 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-12-02 20:04:17 +0900 |
| commit | 7bdddbacf8610140c0c9db7ccb09d546203ce380 (patch) | |
| tree | c59df43eac4c256d54dbea9491e1604535551230 /components/polices | |
| parent | 87ab8fa7aa845e3aa56941d9eeaba03f36f4b3d3 (diff) | |
(김준회) 메뉴명과 화면 내 h태그 일치 시키기, i18n 적용
Diffstat (limited to 'components/polices')
| -rw-r--r-- | components/polices/policy-page-client.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/components/polices/policy-page-client.tsx b/components/polices/policy-page-client.tsx index ccc87c31..86bd3128 100644 --- a/components/polices/policy-page-client.tsx +++ b/components/polices/policy-page-client.tsx @@ -4,6 +4,7 @@ import { useState } from 'react' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { FileText, Shield, Clock, Calendar, User } from 'lucide-react' import { PolicyManagementClient } from '@/components/polices/policy-management-client' +import { useTranslation } from '@/i18n/client' interface Policy { id: number @@ -44,7 +45,8 @@ interface PolicyPageClientProps { } lastUpdate: string | null } - } + }, + lng: string } // 선택된 locale의 가장 최근 업데이트 날짜를 가져오는 함수 @@ -64,7 +66,9 @@ function getLastUpdateForLocale(data: PolicyPageClientProps['data'], locale: 'ko return sortedPolicies[0]?.createdAt || null } -export function PolicyPageClient({ data }: PolicyPageClientProps) { +export function PolicyPageClient({ data, lng }: PolicyPageClientProps) { + const { t } = useTranslation(lng, 'menu') + const [selectedLocale, setSelectedLocale] = useState<'ko' | 'en'>('ko') // 선택된 locale에 맞는 데이터 필터링 @@ -90,9 +94,9 @@ export function PolicyPageClient({ data }: PolicyPageClientProps) { {/* 헤더 */} <div className="flex items-center justify-between"> <div> - <h2 className="text-2xl font-bold tracking-tight">정책 관리</h2> + <h2 className="text-2xl font-bold tracking-tight">{t('menu.vendor_management.vendor_consent')}</h2> <p className="text-muted-foreground"> - 개인정보 처리방침과 이용약관을 버전별로 관리합니다 + {t('menu.vendor_management.vendor_consent_desc')} </p> </div> |
