From c80246adbfa12f60f864b182dcbf204acf25a1a1 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 19 Dec 2025 16:11:43 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20=EA=B5=AC=EB=A7=A4=20=EB=B2=84=ED=8A=BC=20=ED=85=8D?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EB=8B=A4=EA=B5=AD=EC=96=B4=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Content/Detail/ContentDetailView.swift | 7 +++++-- SodaLive/Sources/I18n/I18n.swift | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) 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: - 내부 헬퍼