콘텐츠 상세 구매 버튼 텍스트 다국어 처리

This commit is contained in:
Yu Sung
2025-12-19 16:11:43 +09:00
parent bea50b0085
commit c80246adbf
2 changed files with 12 additions and 2 deletions

View File

@@ -134,8 +134,11 @@ struct ContentDetailView: View {
} else {
ContentDetailPurchaseButton(
price: audioContent.price,
title: audioContent.purchaseOption == .RENT_ONLY ? " 대여하기" :
audioContent.purchaseOption == .BUY_ONLY ? " 소장하기" : " 구매하기",
title: " " + (
audioContent.purchaseOption == .RENT_ONLY ? I18n.Purchase.rent :
audioContent.purchaseOption == .BUY_ONLY ? I18n.Purchase.buy :
I18n.Purchase.purchase
),
backgroundColor: audioContent.purchaseOption == .RENT_ONLY ? Color(hex: "548f7d") :
audioContent.purchaseOption == .BUY_ONLY ? Color(hex: "59548f") :
Color.button