diff --git a/SodaLive/Sources/Content/Detail/ContentDetailView.swift b/SodaLive/Sources/Content/Detail/ContentDetailView.swift index d9cf9c9..cc71a8e 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailView.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailView.swift @@ -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 diff --git a/SodaLive/Sources/I18n/I18n.swift b/SodaLive/Sources/I18n/I18n.swift index 3b2440a..22ae754 100644 --- a/SodaLive/Sources/I18n/I18n.swift +++ b/SodaLive/Sources/I18n/I18n.swift @@ -251,6 +251,13 @@ enum I18n { pick(ko: "총 \(count)화", en: "Total \(count) episodes", ja: "全\(count)話") } } + + // 콘텐츠 구매/대여 관련 공통 액션 라벨 + enum Purchase { + static var rent: String { pick(ko: "대여하기", en: "Rent", ja: "レンタルする") } + static var buy: String { pick(ko: "소장하기", en: "Buy", ja: "購入する") } + static var purchase: String { pick(ko: "구매하기", en: "Purchase", ja: "購入する") } + } } // MARK: - 내부 헬퍼