feat(i18n): 마이페이지 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -17,7 +17,7 @@ struct CanStatusView: View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
GeometryReader { proxy in
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: String(localized: "캔내역")) {
|
||||
DetailNavigationBar(title: I18n.MyPage.Can.statusTitle) {
|
||||
AppState.shared.setAppStep(step: .main)
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ struct CanStatusView: View {
|
||||
|
||||
HStack(spacing: 26.7) {
|
||||
VStack(spacing: 10) {
|
||||
Text("결제 캔")
|
||||
Text(I18n.MyPage.Can.paidCan)
|
||||
.appFont(size: 12, weight: .light)
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
|
||||
@@ -44,7 +44,7 @@ struct CanStatusView: View {
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Text(" 캔")
|
||||
Text(" \(I18n.MyPage.Can.localizedUnit)")
|
||||
.appFont(size: 10.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
}
|
||||
@@ -56,7 +56,7 @@ struct CanStatusView: View {
|
||||
.foregroundColor(Color(hex: "909090").opacity(0.5))
|
||||
|
||||
VStack(spacing: 10) {
|
||||
Text("리워드 캔")
|
||||
Text(I18n.MyPage.Can.rewardCan)
|
||||
.appFont(size: 12, weight: .light)
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
|
||||
@@ -65,7 +65,7 @@ struct CanStatusView: View {
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Text(" 캔")
|
||||
Text(" \(I18n.MyPage.Can.localizedUnit)")
|
||||
.appFont(size: 10.7, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
}
|
||||
@@ -82,7 +82,7 @@ struct CanStatusView: View {
|
||||
HStack(spacing: 0) {
|
||||
VStack(spacing: 0) {
|
||||
Spacer()
|
||||
Text("충전내역")
|
||||
Text(I18n.MyPage.Can.chargeHistory)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(
|
||||
Color(hex: viewModel.currentTab == .charge ? "eeeeee" : "777777")
|
||||
@@ -104,7 +104,7 @@ struct CanStatusView: View {
|
||||
|
||||
VStack(spacing: 0) {
|
||||
Spacer()
|
||||
Text("사용내역")
|
||||
Text(I18n.MyPage.Can.useHistory)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(
|
||||
Color(hex: viewModel.currentTab == .use ? "eeeeee" : "777777")
|
||||
@@ -142,7 +142,7 @@ struct CanStatusView: View {
|
||||
.resizable()
|
||||
.frame(width: 26.7, height: 26.7)
|
||||
|
||||
Text("충전하기")
|
||||
Text(I18n.MyPage.Can.chargeAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "1313bc"))
|
||||
}
|
||||
|
||||
@@ -52,13 +52,13 @@ final class CanStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -90,13 +90,13 @@ final class CanStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -128,13 +128,13 @@ final class CanStatusViewModel: 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