diff --git a/SodaLive/Sources/I18n/I18n.swift b/SodaLive/Sources/I18n/I18n.swift index 83cabe1a..187b6ddd 100644 --- a/SodaLive/Sources/I18n/I18n.swift +++ b/SodaLive/Sources/I18n/I18n.swift @@ -3075,18 +3075,54 @@ If you block this user, the following features will be restricted. pick(ko: "전체", en: "All", ja: "すべて") } + static var tabTitle: String { + pick(ko: "팔로잉", en: "Following", ja: "フォロー中") + } + static var onAirTitle: String { pick(ko: "On Air", en: "On Air", ja: "On Air") } + static var liveTag: String { + pick(ko: "LIVE", en: "LIVE", ja: "LIVE") + } + static var recentChatTitle: String { pick(ko: "최근 대화", en: "Recent chats", ja: "最近のトーク") } + static var directTag: String { + pick(ko: "Direct", en: "Direct", ja: "Direct") + } + static var monthlyScheduleTitle: String { pick(ko: "이달의 스케줄", en: "This month's schedule", ja: "今月のスケジュール") } + static var today: String { + pick(ko: "오늘", en: "Today", ja: "今日") + } + + static var onAirStatus: String { + pick(ko: "On Air", en: "On Air", ja: "On Air") + } + + static var liveScheduleTag: String { + pick(ko: "라이브", en: "Live", ja: "ライブ") + } + + static var liveReplayScheduleTag: String { + pick(ko: "다시보기", en: "Replay", ja: "アーカイブ") + } + + static var audioScheduleTag: String { + pick(ko: "오디오", en: "Audio", ja: "オーディオ") + } + + static var communityScheduleTag: String { + pick(ko: "커뮤니티", en: "Community", ja: "コミュニティ") + } + static var recentNewsTitle: String { pick(ko: "최근 소식", en: "Recent news", ja: "最近のニュース") } diff --git a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingChatSection.swift b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingChatSection.swift index 18f4da0e..0ad3f80d 100644 --- a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingChatSection.swift +++ b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingChatSection.swift @@ -85,7 +85,7 @@ private struct MainHomeFollowingChatItemView: View { private struct DirectTagView: View { var body: some View { - Text("Direct") + Text(I18n.HomeFollowing.directTag) .appFont(size: 12, weight: .bold) .italic() .foregroundColor(.white) diff --git a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingLiveSection.swift b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingLiveSection.swift index 2ad68862..037dd2c4 100644 --- a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingLiveSection.swift +++ b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingLiveSection.swift @@ -88,7 +88,7 @@ private struct LiveTagView: View { .fill(Color.red400) .frame(width: 8, height: 8) - Text("LIVE") + Text(I18n.HomeFollowing.liveTag) .appFont(size: 12, weight: .regular) .foregroundColor(.white) .lineLimit(1) diff --git a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingScheduleSection.swift b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingScheduleSection.swift index 10d4594d..bd8ed7fb 100644 --- a/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingScheduleSection.swift +++ b/SodaLive/Sources/V2/Main/Home/Following/Components/MainHomeFollowingScheduleSection.swift @@ -132,7 +132,7 @@ private struct DateBoxView: View { var body: some View { VStack(alignment: .center, spacing: SodaSpacing.s4) { if schedule.isToday { - Text("오늘") + Text(I18n.HomeFollowing.today) .appFont(size: 22, weight: .bold) .foregroundColor(.white) .lineLimit(1) @@ -189,7 +189,7 @@ private extension FollowingScheduleResponse { var statusText: String { if isOnAir { - return "On Air" + return I18n.HomeFollowing.onAirStatus } guard let scheduledDate else { return scheduledAtUtc } @@ -201,13 +201,13 @@ private extension CreatorActivityType { var scheduleTagTitle: String { switch self { case .live: - return "라이브" + return I18n.HomeFollowing.liveScheduleTag case .liveReplay: - return "다시보기" + return I18n.HomeFollowing.liveReplayScheduleTag case .audio: - return "오디오" + return I18n.HomeFollowing.audioScheduleTag case .community: - return "커뮤니티" + return I18n.HomeFollowing.communityScheduleTag case .unknown(let rawValue): return rawValue } diff --git a/SodaLive/Sources/V2/Main/Home/Following/MainHomeFollowingView.swift b/SodaLive/Sources/V2/Main/Home/Following/MainHomeFollowingView.swift index b46d8220..7bde8270 100644 --- a/SodaLive/Sources/V2/Main/Home/Following/MainHomeFollowingView.swift +++ b/SodaLive/Sources/V2/Main/Home/Following/MainHomeFollowingView.swift @@ -54,7 +54,7 @@ struct MainHomeFollowingView: View { ) } - MainPlaceholderTabView(title: "팔로잉") + MainPlaceholderTabView(title: I18n.HomeFollowing.tabTitle) } .onAppear { if viewModel.hasLoaded == false {