feat(i18n): 사용자 화면 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-03-31 17:37:29 +09:00
parent b2f66cf408
commit 8e4fe7a534
18 changed files with 551 additions and 256 deletions

View File

@@ -17,11 +17,11 @@ struct FindPasswordView: View {
BaseView(isLoading: $viewModel.isLoading) {
GeometryReader { proxy in
VStack(spacing: 0) {
DetailNavigationBar(title: String(localized: "비밀번호 재설정"))
DetailNavigationBar(title: I18n.FindPassword.title)
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 0) {
Text("회원가입한 이메일 주소로\n임시 비밀번호를 보내드립니다.")
Text(I18n.FindPassword.description1)
.appFont(size: 16, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
.multilineTextAlignment(.center)
@@ -29,7 +29,7 @@ struct FindPasswordView: View {
.padding(.top, 40)
.padding(.horizontal, 26.7)
Text("임시 비밀번호로 로그인 후\n마이페이지 > 프로필 설정에서\n비밀번호를 변경하고 이용하세요.")
Text(I18n.FindPassword.description2)
.appFont(size: 12, weight: .medium)
.foregroundColor(Color(hex: "909090"))
.multilineTextAlignment(.center)
@@ -37,7 +37,7 @@ struct FindPasswordView: View {
.padding(.top, 40)
.padding(.horizontal, 26.7)
TextField("이메일을 입력하세요", text: $viewModel.email)
TextField(I18n.FindPassword.emailPlaceholder, text: $viewModel.email)
.focused($isFocused)
.autocapitalization(.none)
.disableAutocorrection(true)
@@ -54,7 +54,7 @@ struct FindPasswordView: View {
isFocused = true
}
Text("임시 비밀번호 받기")
Text(I18n.FindPassword.submit)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color.white)
.frame(maxWidth: proxy.size.width - 26.7)
@@ -67,7 +67,7 @@ struct FindPasswordView: View {
HStack(spacing: 13.3) {
Image("ic_headphones_blue")
Text("고객센터로 문의하기")
Text(I18n.FindPassword.contactSupport)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.button)
}

View File

@@ -22,7 +22,7 @@ final class FindPasswordViewModel: ObservableObject {
func findPassword() {
if email.trimmingCharacters(in: .whitespaces).isEmpty {
errorMessage = "이메일을 입력하세요."
errorMessage = I18n.FindPassword.emailRequired
isShowPopup = true
return
}
@@ -45,7 +45,7 @@ final class FindPasswordViewModel: ObservableObject {
if decoded.success {
self.email = ""
self.errorMessage = "임시 비밀번호가 입력하신 이메일로 발송되었습니다.\n이메일을 확인해 주세요."
self.errorMessage = I18n.FindPassword.successMessage
self.isShowPopup = true
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
AppState.shared.back()
@@ -54,13 +54,13 @@ final class FindPasswordViewModel: ObservableObject {
if let message = decoded.message {
self.errorMessage = message
} else {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.errorMessage = I18n.Common.commonError
}
self.isShowPopup = true
}
} catch {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.errorMessage = I18n.Common.commonError
self.isShowPopup = true
}
}