feat(i18n): 메시지 모듈 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-03-31 22:01:30 +09:00
parent 4c170e0f97
commit 9369a52ba2
11 changed files with 226 additions and 51 deletions

View File

@@ -18,11 +18,11 @@ struct SelectRecipientView: View {
var body: some View {
BaseView {
VStack(spacing: 20) {
DetailNavigationBar(title: String(localized: "받는 사람 검색")) {
DetailNavigationBar(title: I18n.Message.Text.SelectRecipient.title) {
isShowing = false
}
TextField("닉네임을 입력해주세요", text: $viewModel.searchNickname)
TextField(I18n.Message.Text.SelectRecipient.nicknamePlaceholder, text: $viewModel.searchNickname)
.autocapitalization(.none)
.disableAutocorrection(true)
.appFont(size: 13.3, weight: .medium)

View File

@@ -51,13 +51,13 @@ final class SelectRecipientViewModel: ObservableObject {
DEBUG_LOG("message: \(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
}
}
@@ -86,13 +86,13 @@ final class SelectRecipientViewModel: 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
}
}