feat(i18n): 음성 메시지 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -37,7 +37,7 @@ struct VoiceMessageView: View {
|
||||
viewModel.selectedMessageId = item.messageId
|
||||
soundManager.stopAudio()
|
||||
if item.isKept {
|
||||
viewModel.errorMessage = "이미 보관된 메시지 입니다"
|
||||
viewModel.errorMessage = I18n.Message.Text.Detail.alreadyKept
|
||||
viewModel.isShowPopup = true
|
||||
return
|
||||
} else {
|
||||
@@ -76,7 +76,7 @@ struct VoiceMessageView: View {
|
||||
.resizable()
|
||||
.frame(width: 60, height: 60)
|
||||
|
||||
Text("메시지가 없습니다.\n친구들과 소통해보세요!")
|
||||
Text(I18n.Message.Text.emptyState)
|
||||
.multilineTextAlignment(.center)
|
||||
.appFont(size: 10.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
@@ -114,18 +114,18 @@ struct VoiceMessageView: View {
|
||||
.ignoresSafeArea()
|
||||
|
||||
VStack(spacing: 0) {
|
||||
Text("메시지 보관")
|
||||
Text(I18n.Message.Voice.SavePopup.title)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
.padding(.top, 40)
|
||||
|
||||
Text("메시지를 보관하는데\n\(viewModel.saveMessagePrice)캔이 필요합니다.\n메시지를 보관하시겠습니까?")
|
||||
Text(I18n.Message.Voice.SavePopup.description(viewModel.saveMessagePrice))
|
||||
.appFont(size: 15, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
.padding(.top, 13.3)
|
||||
.multilineTextAlignment(.center)
|
||||
|
||||
Text("※ 메시지 보관시, 본인이 삭제하기 전까지 영구보관됩니다.")
|
||||
Text(I18n.Message.Voice.SavePopup.notice)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
.padding(.top, 13.3)
|
||||
@@ -133,7 +133,7 @@ struct VoiceMessageView: View {
|
||||
.multilineTextAlignment(.center)
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
Text("취소")
|
||||
Text(I18n.Common.cancel)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "3bb9f1"))
|
||||
.padding(.vertical, 16)
|
||||
@@ -151,7 +151,7 @@ struct VoiceMessageView: View {
|
||||
viewModel.isShowSavePopup = false
|
||||
}
|
||||
|
||||
Text("확인")
|
||||
Text(I18n.Common.confirm)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
|
||||
Reference in New Issue
Block a user