feat(i18n): 콘텐츠 모듈 그룹1 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -22,7 +22,7 @@ struct ContentAllByThemeView: View {
|
||||
HStack(spacing: 13.3) {
|
||||
Spacer()
|
||||
|
||||
Text("최신순")
|
||||
Text(I18n.Content.Sort.newest)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(
|
||||
Color(hex: "e2e2e2")
|
||||
@@ -34,7 +34,7 @@ struct ContentAllByThemeView: View {
|
||||
}
|
||||
}
|
||||
|
||||
Text("높은 가격순")
|
||||
Text(I18n.Content.Sort.priceHigh)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(
|
||||
Color(hex: "e2e2e2")
|
||||
@@ -46,7 +46,7 @@ struct ContentAllByThemeView: View {
|
||||
}
|
||||
}
|
||||
|
||||
Text("낮은 가격순")
|
||||
Text(I18n.Content.Sort.priceLow)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(
|
||||
Color(hex: "e2e2e2")
|
||||
@@ -64,7 +64,7 @@ struct ContentAllByThemeView: View {
|
||||
.padding(.top, 13.3)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("전체")
|
||||
Text(I18n.Content.Count.totalPrefix)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "e2e2e2"))
|
||||
|
||||
@@ -73,7 +73,7 @@ struct ContentAllByThemeView: View {
|
||||
.foregroundColor(Color(hex: "ff5c49"))
|
||||
.padding(.leading, 8)
|
||||
|
||||
Text("개")
|
||||
Text(I18n.Content.Count.countUnit)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "e2e2e2"))
|
||||
.padding(.leading, 2)
|
||||
|
||||
@@ -78,13 +78,13 @@ final class ContentAllByThemeViewModel: ObservableObject {
|
||||
if let message = decoded.message {
|
||||
self.errorMessage = message
|
||||
} else {
|
||||
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
||||
self.errorMessage = I18n.Common.commonError
|
||||
}
|
||||
|
||||
self.isShowPopup = true
|
||||
}
|
||||
} catch {
|
||||
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
||||
self.errorMessage = I18n.Common.commonError
|
||||
self.isShowPopup = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user