feat(i18n): 마이페이지 그룹 3~5 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -17,20 +17,20 @@ struct LiveReservationCancelView: View {
|
||||
var body: some View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: viewModel.isCancelComplete ? "예약취소 확인" : "예약취소")
|
||||
DetailNavigationBar(title: viewModel.isCancelComplete ? I18n.MyPage.Reservation.Cancel.completedTitle : I18n.MyPage.Reservation.Cancel.title)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
if let item = viewModel.selectedReservationStatusItem {
|
||||
if viewModel.isCancelComplete {
|
||||
Text("예약취소가 완료되었습니다.")
|
||||
Text(I18n.MyPage.Reservation.Cancel.completedMessage)
|
||||
.appFont(size: 20, weight: .bold)
|
||||
.foregroundColor(Color(hex: "a285eb"))
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
.padding(.top, 33.3)
|
||||
|
||||
if item.price > 0 {
|
||||
Text("결제한 \(item.price)캔이\n환불처리 되었습니다.")
|
||||
Text(I18n.MyPage.Reservation.Cancel.refundedCanMessage(item.price))
|
||||
.appFont(size: 20, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
@@ -38,7 +38,7 @@ struct LiveReservationCancelView: View {
|
||||
}
|
||||
|
||||
HStack(spacing: 13.3) {
|
||||
Text("다른 라이브 예약하기")
|
||||
Text(I18n.MyPage.Reservation.Cancel.reserveAnotherLiveAction)
|
||||
.appFont(size: 15, weight: .medium)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.vertical, 16)
|
||||
@@ -56,7 +56,7 @@ struct LiveReservationCancelView: View {
|
||||
AppState.shared.setAppStep(step: .main)
|
||||
}
|
||||
|
||||
Text("캔내역 확인하기")
|
||||
Text(I18n.MyPage.Reservation.Cancel.checkCanHistoryAction)
|
||||
.appFont(size: 15, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
@@ -105,8 +105,8 @@ struct LiveReservationCancelView: View {
|
||||
|
||||
Text(
|
||||
item.price > 0 ?
|
||||
"\(item.price)캔" :
|
||||
"무료"
|
||||
I18n.MyPage.Reservation.cansUnit(item.price) :
|
||||
I18n.MyPage.Reservation.LiveStatus.free
|
||||
)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color(hex: "e2e2e2").opacity(0.4))
|
||||
@@ -124,12 +124,12 @@ struct LiveReservationCancelView: View {
|
||||
.padding(.top, 13.3)
|
||||
|
||||
VStack(spacing: 13.3) {
|
||||
Text("예약을 취소하시겠습니까?")
|
||||
Text(I18n.MyPage.Reservation.Cancel.confirmQuestion)
|
||||
.appFont(size: 20, weight: .bold)
|
||||
.foregroundColor(Color(hex: "a285eb"))
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
|
||||
Text("예약취소 이유를 선택해주세요. 서비스 개선에 중요한 자료로 활용하겠습니다.")
|
||||
Text(I18n.MyPage.Reservation.Cancel.reasonDescription)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
@@ -154,7 +154,7 @@ struct LiveReservationCancelView: View {
|
||||
|
||||
if index == viewModel.cancelReasons.count - 1 {
|
||||
VStack(spacing: 6.7) {
|
||||
TextField("입력해주세요", text: $viewModel.reason)
|
||||
TextField(I18n.MyPage.Reservation.Cancel.reasonPlaceholder, text: $viewModel.reason)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
@@ -180,12 +180,12 @@ struct LiveReservationCancelView: View {
|
||||
.foregroundColor(Color(hex: "232323"))
|
||||
.padding(.vertical, 20)
|
||||
|
||||
Text("취소요청시, 차감했던 캔은 환불처리 됩니다. 수다방 참여인원 제한에 따라 재예약이 불가할 수 있습니다.")
|
||||
Text(I18n.MyPage.Reservation.Cancel.notice)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color(hex: "ff5c49"))
|
||||
.frame(width: screenSize().width - 53.4, alignment: .leading)
|
||||
|
||||
Text("예약취소")
|
||||
Text(I18n.MyPage.Reservation.Cancel.requestCancelAction)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
@@ -206,7 +206,7 @@ struct LiveReservationCancelView: View {
|
||||
.sodaToast(isPresented: $viewModel.isShowPopup, message: viewModel.errorMessage, autohideIn: 1)
|
||||
.onAppear {
|
||||
if reservationId <= 0 {
|
||||
viewModel.errorMessage = "잘못된 예약정보 입니다."
|
||||
viewModel.errorMessage = I18n.MyPage.Reservation.Cancel.invalidReservationInfo
|
||||
viewModel.isShowPopup = true
|
||||
} else {
|
||||
viewModel.getReservation(reservationId: reservationId)
|
||||
|
||||
Reference in New Issue
Block a user