시리즈 메인 탭 라벨을 다국어로 제공한다

This commit is contained in:
Yu Sung
2025-12-19 18:38:23 +09:00
parent 27b024f187
commit fdac62fc7a
2 changed files with 11 additions and 3 deletions
@@ -15,9 +15,9 @@ struct SeriesMainView: View {
var title: String { var title: String {
switch self { switch self {
case .home: return "홈" case .home: return I18n.SeriesMain.home
case .dayOfWeek: return "요일별" case .dayOfWeek: return I18n.SeriesMain.dayOfWeek
case .byGenre: return "장르별" case .byGenre: return I18n.SeriesMain.byGenre
} }
} }
} }
+8
View File
@@ -323,6 +323,14 @@ enum I18n {
} }
} }
// 시리즈 메인 화면 내부 탭 라벨
enum SeriesMain {
// 기존 정의 재사용: 홈은 SeriesDetail.home 과 의미 동일
static var home: String { SeriesDetail.home }
static var dayOfWeek: String { pick(ko: "요일별", en: "By day", ja: "曜日別") }
static var byGenre: String { pick(ko: "장르별", en: "By genre", ja: "ジャンル別") }
}
// 콘텐츠 구매/대여 관련 공통 액션 라벨 // 콘텐츠 구매/대여 관련 공통 액션 라벨
enum Purchase { enum Purchase {
static var rent: String { pick(ko: "대여하기", en: "Rent", ja: "レンタルする") } static var rent: String { pick(ko: "대여하기", en: "Rent", ja: "レンタルする") }