feat(i18n): 콘텐츠 상세/댓글 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -65,7 +65,7 @@ struct LiveRoomDonationDialogView: View {
|
||||
.resizable()
|
||||
.frame(width: 26.7, height: 26.7)
|
||||
|
||||
Text("후원하기")
|
||||
Text(I18n.ContentDetail.DonationDialog.title)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -80,7 +80,7 @@ struct LiveRoomDonationDialogView: View {
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
Text("충전")
|
||||
Text(I18n.ContentDetail.DonationDialog.charge)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.main)
|
||||
.padding(.horizontal, 13.3)
|
||||
@@ -126,7 +126,12 @@ struct LiveRoomDonationDialogView: View {
|
||||
.padding(.top, 16)
|
||||
}
|
||||
|
||||
TextField(isSecret ? "10캔 이상 입력하세요" : "1캔 이상 입력하세요", text: $donationCan)
|
||||
TextField(
|
||||
isSecret ?
|
||||
I18n.ContentDetail.DonationDialog.minimumTenCanPlaceholder :
|
||||
I18n.ContentDetail.DonationDialog.minimumOneCanPlaceholder,
|
||||
text: $donationCan
|
||||
)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(13.3)
|
||||
@@ -227,7 +232,10 @@ struct LiveRoomDonationDialogView: View {
|
||||
)
|
||||
|
||||
TextField(
|
||||
"함께 보낼 \((isSecret && shouldPrefixSecretInMessagePlaceholder) ? "비밀 " : "")메시지 입력(최대 \(messageLimit)자)",
|
||||
I18n.ContentDetail.DonationDialog.messagePlaceholder(
|
||||
isSecret: isSecret && shouldPrefixSecretInMessagePlaceholder,
|
||||
limit: messageLimit
|
||||
),
|
||||
text: $donationMessage
|
||||
)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
@@ -242,7 +250,7 @@ struct LiveRoomDonationDialogView: View {
|
||||
.padding(.horizontal, 20)
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
Text("취소")
|
||||
Text(I18n.Common.cancel)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.vertical, 16)
|
||||
@@ -258,7 +266,7 @@ struct LiveRoomDonationDialogView: View {
|
||||
isShowing = false
|
||||
}
|
||||
|
||||
Text("후원하기")
|
||||
Text(I18n.ContentDetail.DonationDialog.donateAction)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
@@ -271,14 +279,14 @@ struct LiveRoomDonationDialogView: View {
|
||||
errorMessage = secretMinimumCanMessage
|
||||
isShowErrorPopup = true
|
||||
} else if can < 1 {
|
||||
errorMessage = "1캔 이상 후원하실 수 있습니다."
|
||||
errorMessage = I18n.LiveRoom.atLeastOneCanDonationMessage
|
||||
isShowErrorPopup = true
|
||||
} else {
|
||||
onClickDonation(can, donationMessage, isSecret)
|
||||
isShowing = false
|
||||
}
|
||||
} else {
|
||||
errorMessage = "1캔 이상 후원하실 수 있습니다."
|
||||
errorMessage = I18n.LiveRoom.atLeastOneCanDonationMessage
|
||||
isShowErrorPopup = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user