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 {
|
||||
|
||||
@@ -7,7 +7,7 @@ struct CreatorChannelDonationRankingSection: View {
|
||||
var body: some View {
|
||||
if rankings.isEmpty == false {
|
||||
VStack(alignment: .leading, spacing: SodaSpacing.s14) {
|
||||
Text("후원 랭킹")
|
||||
Text(I18n.Explorer.donationRankingTitle)
|
||||
.appFont(size: 20, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
@@ -19,7 +19,7 @@ struct CreatorChannelDonationRankingSection: View {
|
||||
}
|
||||
|
||||
Button(action: onTapViewAll) {
|
||||
Text("전체보기")
|
||||
Text(I18n.CreatorChannelHome.viewAll)
|
||||
.appFont(size: 16, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Reference in New Issue
Block a user