refactor(home): 팔로잉 문구를 다국어화한다
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ struct MainHomeFollowingView: View {
|
||||
)
|
||||
}
|
||||
|
||||
MainPlaceholderTabView(title: "팔로잉")
|
||||
MainPlaceholderTabView(title: I18n.HomeFollowing.tabTitle)
|
||||
}
|
||||
.onAppear {
|
||||
if viewModel.hasLoaded == false {
|
||||
|
||||
Reference in New Issue
Block a user