콘텐츠 상세의 섹션 제목 다국어 처리
This commit is contained in:
@@ -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 }
|
||||
)
|
||||
|
||||
@@ -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: "たった今")
|
||||
|
||||
Reference in New Issue
Block a user