feat(i18n): 마이페이지 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -41,7 +41,7 @@ struct CanPgPaymentView: View {
|
||||
.onError {
|
||||
DEBUG_LOG("onError: \($0)")
|
||||
viewModel.isShowPaymentView = false
|
||||
viewModel.errorMessage = "결제 중 오류가 발생했습니다."
|
||||
viewModel.errorMessage = I18n.MyPage.Can.Payment.inProgressError
|
||||
viewModel.isShowPopup = true
|
||||
}
|
||||
.onDone {
|
||||
@@ -72,7 +72,7 @@ struct CanPgPaymentView: View {
|
||||
.ignoresSafeArea(edges: .bottom)
|
||||
HStack(spacing: 8) {
|
||||
Button(action: { showExitConfirm = true }) {
|
||||
Text("닫기")
|
||||
Text(I18n.MyPage.Can.Payment.closeAction)
|
||||
.appFont(size: 14, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.horizontal, 12)
|
||||
@@ -86,21 +86,21 @@ struct CanPgPaymentView: View {
|
||||
}
|
||||
}
|
||||
.background(Color.black.ignoresSafeArea())
|
||||
.alert("결제를 종료할까요?", isPresented: $showExitConfirm) {
|
||||
Button("계속", role: .cancel) { }
|
||||
Button("종료", role: .destructive) {
|
||||
.alert(I18n.MyPage.Can.Payment.exitConfirmTitle, isPresented: $showExitConfirm) {
|
||||
Button(I18n.MyPage.Can.Payment.continueAction, role: .cancel) { }
|
||||
Button(I18n.MyPage.Can.Payment.exitAction, role: .destructive) {
|
||||
DEBUG_LOG("Payverse: user requested to exit")
|
||||
viewModel.isShowPayversePaymentView = false
|
||||
// 필요 시 상위로 복귀
|
||||
AppState.shared.back()
|
||||
}
|
||||
} message: {
|
||||
Text("진행 중인 결제를 중단하고 이전 화면으로 돌아갑니다.")
|
||||
Text(I18n.MyPage.Can.Payment.exitConfirmMessage)
|
||||
}
|
||||
} else {
|
||||
GeometryReader { proxy in
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "결제하기")
|
||||
DetailNavigationBar(title: I18n.MyPage.Can.Payment.title)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
@@ -129,14 +129,14 @@ struct CanPgPaymentView: 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)
|
||||
.padding(.top, 26.7)
|
||||
|
||||
HStack(spacing: 16.7) {
|
||||
Text("통합 결제")
|
||||
Text(I18n.MyPage.Can.Payment.unifiedMethod)
|
||||
.appFont(size: 16.7, weight: viewModel.paymentMethod == .unified ? .bold : .medium)
|
||||
.foregroundColor(viewModel.paymentMethod == .unified ? Color.button : Color.grayee)
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -179,7 +179,7 @@ struct CanPgPaymentView: View {
|
||||
}
|
||||
}
|
||||
|
||||
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(maxWidth: .infinity)
|
||||
@@ -209,7 +209,7 @@ struct CanPgPaymentView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("구매조건 확인 및 결제 진행 동의")
|
||||
Text(I18n.MyPage.Can.Payment.termsAgreement)
|
||||
.appFont(size: 14.7, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -225,7 +225,7 @@ struct CanPgPaymentView: View {
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Text("충전된 캔의 유효기간은 충전 후 5년 입니다.")
|
||||
Text(I18n.MyPage.Can.Payment.noticeCanExpiry)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
@@ -238,7 +238,7 @@ struct CanPgPaymentView: View {
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Text("결제 취소는 결제 후 7일 이내에만 할 수 있습니다.\n단, 캔의 일부를 사용하면 결제 취소를 할 수 없습니다.")
|
||||
Text(I18n.MyPage.Can.Payment.noticeCancellationPolicy)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
@@ -250,7 +250,7 @@ struct CanPgPaymentView: View {
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Text("광고성 이벤트 등 회사가 무료로 지급한 포인트는 환불되지 않습니다.")
|
||||
Text(I18n.MyPage.Can.Payment.noticeEventPointNoRefund)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
@@ -262,7 +262,7 @@ struct CanPgPaymentView: View {
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
|
||||
Text("자세한 내용은 보이스온 이용약관에서 확인할 수 있습니다.")
|
||||
Text(I18n.MyPage.Can.Payment.noticeTermsReference)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.gray77)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
@@ -276,7 +276,7 @@ struct CanPgPaymentView: 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)
|
||||
|
||||
@@ -289,7 +289,7 @@ struct CanPgPaymentView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("결제하기")
|
||||
Text(I18n.MyPage.Can.Payment.payAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
@@ -298,10 +298,10 @@ struct CanPgPaymentView: 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 {
|
||||
if viewModel.paymentMethod == .unified {
|
||||
@@ -317,7 +317,7 @@ struct CanPgPaymentView: View {
|
||||
|
||||
viewModel.isShowPaymentView = true
|
||||
} else {
|
||||
viewModel.errorMessage = "결제도중 오류가 발생했습니다.\n고객센터로 문의주시기 바랍니다."
|
||||
viewModel.errorMessage = I18n.MyPage.Can.Payment.failedWithSupport
|
||||
viewModel.isShowPopup = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user