fix(donation): 후원 문구에 다국어를 적용한다
This commit is contained in:
@@ -57,7 +57,7 @@ struct CreatorChannelDonationCard: View {
|
||||
.scaledToFit()
|
||||
.frame(width: 18, height: 18)
|
||||
|
||||
Text("\(donation.can)캔")
|
||||
Text(I18n.LiveChat.canWithUnit(donation.can))
|
||||
.appFont(size: 14, weight: .regular)
|
||||
.foregroundColor(.white)
|
||||
.lineLimit(1)
|
||||
@@ -72,7 +72,7 @@ struct CreatorChannelDonationCard: View {
|
||||
extension CreatorChannelDonationResponse {
|
||||
var messageText: String {
|
||||
let trimmedMessage = message.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
return trimmedMessage.isEmpty ? "\(can)캔을 후원하였습니다" : trimmedMessage
|
||||
return trimmedMessage.isEmpty ? I18n.CreatorChannelDonation.defaultMessage(can) : trimmedMessage
|
||||
}
|
||||
|
||||
func relativeTimeText(now: Date = Date()) -> String {
|
||||
|
||||
Reference in New Issue
Block a user