From 741429f518e4fc1404b225516f70568036ebb5f2 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Fri, 17 Oct 2025 15:36:45 +0900 Subject: (김준회) 로그인화면 변경에 따른 i18n 추가 적용, json 내 중복 키 삭제 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/login/login-form.tsx | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'components') diff --git a/components/login/login-form.tsx b/components/login/login-form.tsx index 0e047cc7..36687096 100644 --- a/components/login/login-form.tsx +++ b/components/login/login-form.tsx @@ -281,13 +281,13 @@ export function LoginForm() { if (result.success) { setMfaCountdown(60); toast({ - title: '이메일 인증번호 전송', - description: `${targetEmail}로 인증번호가 전송되었습니다.`, + title: t('emailOtpSentTitle'), + description: t('emailOtpSentTo', { email: targetEmail }), }); } else { toast({ title: t('errorTitle'), - description: result.error || '이메일 전송에 실패했습니다.', + description: result.error || t('emailOtpSendFailed'), variant: 'destructive', }); } @@ -295,7 +295,7 @@ export function LoginForm() { console.error('Email OTP send error:', error); toast({ title: t('errorTitle'), - description: '이메일 전송 중 오류가 발생했습니다.', + description: t('emailOtpSendError'), variant: 'destructive', }); } finally { @@ -398,7 +398,7 @@ export function LoginForm() { if (!emailInput) { toast({ title: t('errorTitle'), - description: '이메일을 입력해주세요.', + description: t('pleaseEnterEmail'), variant: 'destructive', }); return; @@ -435,8 +435,8 @@ export function LoginForm() { setShowMfaForm(true); toast({ - title: '이메일 인증', - description: `${emailInput}로 인증번호가 전송되었습니다.`, + title: t('emailVerification'), + description: t('emailOtpSentTo', { email: emailInput }), }); } else { // 일반 이메일: 패스워드 입력 필요 @@ -445,8 +445,8 @@ export function LoginForm() { setShowPasswordInput(true); toast({ - title: '패스워드 입력', - description: '패스워드를 입력해주세요.', + title: t('passwordInput'), + description: t('pleaseEnterPassword'), }); } } catch (error: unknown) { @@ -454,7 +454,7 @@ export function LoginForm() { toast({ title: t('errorTitle'), - description: '이메일 확인 중 오류가 발생했습니다.', + description: t('emailVerificationError'), variant: 'destructive', }); } finally { @@ -469,7 +469,7 @@ export function LoginForm() { if (!password) { toast({ title: t('errorTitle'), - description: '패스워드를 입력해주세요.', + description: t('pleaseEnterPassword'), variant: 'destructive', }); return; @@ -736,19 +736,19 @@ export function LoginForm() { {mfaType === 'email' ? '📧' : '🔐'}

- {mfaType === 'email' ? '이메일 인증' : t('smsVerification')} + {mfaType === 'email' ? t('emailVerification') : t('smsVerification')}

{selectedOtpUser ? t('firstAuthCompleteForSgips', { name: selectedOtpUser.name, email: mfaUserEmail }) : mfaType === 'email' - ? `${mfaUserEmail}로 인증번호가 전송되었습니다.` + ? t('emailOtpSentTo', { email: mfaUserEmail }) : t('firstAuthCompleteFor', { email: mfaUserEmail }) }

- {mfaType === 'email' - ? '이메일에서 받은 6자리 인증번호를 입력해주세요.' + {mfaType === 'email' + ? t('enterSixDigitEmailCode') : t('enterSixDigitCodeInstructions')}

@@ -814,7 +814,7 @@ export function LoginForm() { variant="samsung" disabled={isFirstAuthLoading || !emailInput} > - {isFirstAuthLoading ? t('authenticating') : '다음'} + {isFirstAuthLoading ? t('authenticating') : t('next')} ) : ( @@ -836,7 +836,7 @@ export function LoginForm() { {/* 이메일 표시 */}
-

로그인 이메일

+

{t('loginEmail')}

{emailInput}

@@ -958,8 +958,8 @@ export function LoginForm() { {t('resendCode')}

- {mfaType === 'email' - ? '이메일을 받지 못하셨나요?' + {mfaType === 'email' + ? t('didNotReceiveEmail') : t('didNotReceiveCode')}

-- cgit v1.2.3