diff --git a/SodaLive/Sources/Content/Detail/ContentDetailView.swift b/SodaLive/Sources/Content/Detail/ContentDetailView.swift index cc71a8e..fe30a68 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailView.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailView.swift @@ -182,7 +182,7 @@ struct ContentDetailView: View { } ContentDetailOtherContentView( - title: "크리에이터의 다른 콘텐츠", + title: I18n.ContentDetail.creatorOtherContents, items: audioContent.creatorOtherContentList, onClickItem: { viewModel.contentId = $0 } ) @@ -195,7 +195,7 @@ struct ContentDetailView: View { .padding(.top, 24) ContentDetailOtherContentView( - title: "테마의 다른 콘텐츠", + title: I18n.ContentDetail.themeOtherContents, items: audioContent.sameThemeOtherContentList, onClickItem: { viewModel.contentId = $0 } ) diff --git a/SodaLive/Sources/I18n/I18n.swift b/SodaLive/Sources/I18n/I18n.swift index 22ae754..b2917d6 100644 --- a/SodaLive/Sources/I18n/I18n.swift +++ b/SodaLive/Sources/I18n/I18n.swift @@ -11,6 +11,23 @@ import Foundation // String Catalog를 사용하지 않는 컨텍스트에서 사용할 하드코딩 맵 기반 i18n. // 기준 언어 선택은 LanguageHeaderProvider.current("ko"|"en"|"ja"). enum I18n { + enum ContentDetail { + static var creatorOtherContents: String { + pick( + ko: "크리에이터의 다른 콘텐츠", + en: "More from this creator", + ja: "このクリエイターの他のコンテンツ" + ) + } + + static var themeOtherContents: String { + pick( + ko: "테마의 다른 콘텐츠", + en: "More in this theme", + ja: "このテーマの他のコンテンツ" + ) + } + } enum Time { static var justNow: String { pick(ko: "방금 전", en: "Just now", ja: "たった今")