시리즈 전체보기 제목 현지화

크리에이터 기준 제목을 다국어로 제공한다.
요일 선택 영역을 가로 스크롤로 제공한다.
This commit is contained in:
Yu Sung
2025-12-19 18:48:31 +09:00
parent fdac62fc7a
commit 321d97bf4d
3 changed files with 22 additions and 13 deletions

View File

@@ -40,21 +40,21 @@ struct SeriesMainDayOfWeekView: View {
var body: some View { var body: some View {
ZStack { ZStack {
VStack(spacing: 16) { VStack(spacing: 16) {
HStack { ScrollView(.horizontal, showsIndicators: false) {
Spacer(minLength: 0) HStack {
ForEach(0..<dayOfWeekItems.count, id: \.self) { ForEach(0..<dayOfWeekItems.count, id: \.self) {
let item = dayOfWeekItems[$0] let item = dayOfWeekItems[$0]
DayOfWeekDayView(dayOfWeek: item.dayOfWeekStr, isSelected: dayOfWeek == item.dayOfWeek) DayOfWeekDayView(dayOfWeek: item.dayOfWeekStr, isSelected: dayOfWeek == item.dayOfWeek)
.onTapGesture { .onTapGesture {
if dayOfWeek != item.dayOfWeek { if dayOfWeek != item.dayOfWeek {
dayOfWeek = item.dayOfWeek dayOfWeek = item.dayOfWeek
viewModel.onTapDayOfWeek(dayOfWeek: dayOfWeek) viewModel.onTapDayOfWeek(dayOfWeek: dayOfWeek)
}
} }
} }
Spacer(minLength: 0)
} }
.padding(.horizontal, 24)
} }
.padding(.horizontal, 24)
ScrollView(.vertical, showsIndicators: false) { ScrollView(.vertical, showsIndicators: false) {
let horizontalPadding: CGFloat = 24 let horizontalPadding: CGFloat = 24

View File

@@ -26,7 +26,7 @@ struct SeriesListAllView: View {
} else if isOriginal { } else if isOriginal {
DetailNavigationBar(title: "오직 보이스온에서만") DetailNavigationBar(title: "오직 보이스온에서만")
} else { } else {
DetailNavigationBar(title: "\(creatorNickname ?? "") 님의 시리즈 전체보기") DetailNavigationBar(title: I18n.Series.viewAllByCreator(creatorNickname ?? ""))
} }
let horizontalPadding: CGFloat = 24 let horizontalPadding: CGFloat = 24

View File

@@ -267,6 +267,15 @@ enum I18n {
static var totalEpisodes: (Int) -> String = { count in static var totalEpisodes: (Int) -> String = { count in
pick(ko: "\(count)", en: "Total \(count) episodes", ja: "\(count)") pick(ko: "\(count)", en: "Total \(count) episodes", ja: "\(count)")
} }
// ( )
static func viewAllByCreator(_ nickname: String) -> String {
pick(
ko: "\(nickname) 님의 시리즈 전체보기",
en: "All series by \(nickname)",
ja: "\(nickname) さんのシリーズ一覧"
)
}
} }
// //