feat(i18n): 메시지 모듈 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user