feat(i18n): 마이페이지 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -41,7 +41,7 @@ struct CanPaymentTempView: View {
|
||||
.onError {
|
||||
DEBUG_LOG("onError: \($0)")
|
||||
viewModel.isShowPaymentView = false
|
||||
viewModel.errorMessage = "결제 중 오류가 발생했습니다."
|
||||
viewModel.errorMessage = I18n.MyPage.Can.Payment.inProgressError
|
||||
viewModel.isShowPopup = true
|
||||
}
|
||||
.onDone {
|
||||
@@ -65,7 +65,7 @@ struct CanPaymentTempView: View {
|
||||
} else {
|
||||
GeometryReader { proxy in
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "결제하기")
|
||||
DetailNavigationBar(title: I18n.MyPage.Can.Payment.title)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
@@ -77,7 +77,7 @@ struct CanPaymentTempView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("\(self.can * 110) 원")
|
||||
Text(I18n.MyPage.Can.Payment.wonAmount(self.can * 110))
|
||||
.appFont(size: 15.3, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -89,7 +89,7 @@ struct CanPaymentTempView: View {
|
||||
.frame(width: screenSize().width)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
Text("결제 수단 선택")
|
||||
Text(I18n.MyPage.Can.Payment.selectMethod)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
@@ -97,7 +97,7 @@ struct CanPaymentTempView: View {
|
||||
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
Text("카드")
|
||||
Text(I18n.MyPage.Can.Payment.cardMethod)
|
||||
.appFont(size: 16.7, weight: viewModel.paymentMethod == .card ? .bold : .medium)
|
||||
.foregroundColor(viewModel.paymentMethod == .card ? Color.button : Color.grayee)
|
||||
.frame(width: (screenSize().width - 40) / 2)
|
||||
@@ -120,7 +120,7 @@ struct CanPaymentTempView: View {
|
||||
}
|
||||
|
||||
|
||||
Text("계좌이체")
|
||||
Text(I18n.MyPage.Can.Payment.bankTransferMethod)
|
||||
.appFont(size: 16.7, weight: viewModel.paymentMethod == .bank ? .bold : .medium)
|
||||
.foregroundColor(viewModel.paymentMethod == .bank ? Color.button : Color.grayee)
|
||||
.frame(width: (screenSize().width - 40) / 2)
|
||||
@@ -146,7 +146,7 @@ struct CanPaymentTempView: View {
|
||||
.padding(.top, 16.7)
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
Text("휴대폰 결제")
|
||||
Text(I18n.MyPage.Can.Payment.phoneMethod)
|
||||
.appFont(size: 16.7, weight: viewModel.paymentMethod == .phone ? .bold : .medium)
|
||||
.foregroundColor(viewModel.paymentMethod == .phone ? Color.button : Color.grayee)
|
||||
.frame(width: (screenSize().width - 40) / 2)
|
||||
@@ -178,7 +178,7 @@ struct CanPaymentTempView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("구매조건 확인 및 결제 진행 동의")
|
||||
Text(I18n.MyPage.Can.Payment.termsAgreement)
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -194,12 +194,12 @@ struct CanPaymentTempView: View {
|
||||
|
||||
HStack(spacing: 0) {
|
||||
VStack(alignment: .leading, spacing: 5) {
|
||||
Text("결제금액")
|
||||
Text(I18n.MyPage.Can.Payment.amountTitle)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("\(self.can * 110) 원")
|
||||
Text(I18n.MyPage.Can.Payment.wonAmount(self.can * 110))
|
||||
.appFont(size: 23.3, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -207,7 +207,7 @@ struct CanPaymentTempView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("결제하기")
|
||||
Text(I18n.MyPage.Can.Payment.payAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
@@ -216,10 +216,10 @@ struct CanPaymentTempView: View {
|
||||
.cornerRadius(10)
|
||||
.onTapGesture {
|
||||
if viewModel.paymentMethod == nil {
|
||||
viewModel.errorMessage = "결제수단을 선택해 주세요."
|
||||
viewModel.errorMessage = I18n.MyPage.Can.Payment.methodRequired
|
||||
viewModel.isShowPopup = true
|
||||
} else if !viewModel.isTermsAgree {
|
||||
viewModel.errorMessage = "결제진행에 동의하셔야 결제가 가능합니다."
|
||||
viewModel.errorMessage = I18n.MyPage.Can.Payment.agreementRequired
|
||||
viewModel.isShowPopup = true
|
||||
} else {
|
||||
viewModel.chargeCan(can: can, paymentGateway: .PG){
|
||||
|
||||
Reference in New Issue
Block a user