From 96df4c1f1b104e1dabd95cd422a87f3d8eb3f3f8 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 16 Dec 2025 23:42:06 +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-=20=EC=96=B8=EC=96=B4=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=9D=BC=20=EB=B2=88=EC=97=AD=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EB=A5=BC=20=ED=91=9C=EC=8B=9C=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Content/Detail/ContentDetailInfoView.swift | 6 +++--- .../Content/Detail/GetAudioContentDetailResponse.swift | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/Content/Detail/ContentDetailInfoView.swift b/SodaLive/Sources/Content/Detail/ContentDetailInfoView.swift index 79190b0..db3b0e5 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailInfoView.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailInfoView.swift @@ -80,7 +80,7 @@ struct ContentDetailInfoView: View { } } - Text(audioContent.title) + Text(audioContent.translated?.title ?? audioContent.title) .font(.custom(Font.bold.rawValue, size: 16.7)) .foregroundColor(Color.grayd2) .lineSpacing(5) @@ -156,13 +156,13 @@ struct ContentDetailInfoView: View { ZStack { VStack(spacing: 8) { if audioContent.tag.count > 0 { - Text(audioContent.tag) + Text(audioContent.translated?.tags ?? audioContent.tag) .font(.custom(Font.medium.rawValue, size: 12)) .foregroundColor(Color.button) .frame(maxWidth: .infinity, alignment: .leading) } - Text(audioContent.detail) + Text(audioContent.translated?.detail ?? audioContent.detail) .font(.custom(Font.medium.rawValue, size: 14)) .foregroundColor(Color.gray90) .lineLimit(isExpandDescription ? nil : 3) diff --git a/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift b/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift index 0884718..cf66d1a 100644 --- a/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift +++ b/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift @@ -42,6 +42,7 @@ struct GetAudioContentDetailResponse: Decodable { let nextContent: OtherContentResponse? let buyerList: [ContentBuyer] let isAvailableUsePoint: Bool + let translated: TranslatedContent? } enum OrderType: String, Codable { @@ -67,3 +68,9 @@ struct ContentBuyer: Decodable { let nickname: String let profileImageUrl: String } + +struct TranslatedContent: Decodable { + let title: String? + let detail: String? + let tags: String? +}