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

@@ -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
}
}