diff options
| author | 0-Zz-ang <s1998319@gmail.com> | 2025-09-25 15:57:18 +0900 |
|---|---|---|
| committer | 0-Zz-ang <s1998319@gmail.com> | 2025-09-25 15:57:18 +0900 |
| commit | d6d3bbc55a557acde7d1f07c3bd4813e367d4e86 (patch) | |
| tree | db94f330abda7fee103c050fea3e880309bcef98 /components/signup | |
| parent | 4c2d4c235bd80368e31cae9c375e9a585f6a6844 (diff) | |
(박서영)동의관련 언어설정 추가
Diffstat (limited to 'components/signup')
| -rw-r--r-- | components/signup/conset-step.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/signup/conset-step.tsx b/components/signup/conset-step.tsx index 4d0a544f..3a145ef1 100644 --- a/components/signup/conset-step.tsx +++ b/components/signup/conset-step.tsx @@ -11,6 +11,7 @@ import { useTranslation } from '@/i18n/client'; interface PolicyData { id: number; policyType: 'privacy_policy' | 'terms_of_service'; + locale: string; // locale 필드 필요 version: string; content: string; // HTML 형태의 리치텍스트 effectiveDate: string; @@ -56,11 +57,11 @@ export default function ConsentStep({ data, onChange, onNext, lng }: ConsentStep setLoading(true); setError(null); - const result = await getCurrentPolicies(); + const result = await getCurrentPolicies(lng); if (result.success) { console.log('Policy data loaded:', result.data); - setPolicyData(result.data); + setPolicyData(result.data[lng]); } else { setError(result.error || t('policyLoadError')); console.error('Failed to fetch policy data:', result.error); |
