feat(i18n): 마이페이지 그룹 3~5 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -20,7 +20,7 @@ struct OrderListAllView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("콘텐츠 보관함")
|
||||
Text(I18n.MyPage.OrderList.contentStorageTitle)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
}
|
||||
|
||||
@@ -62,13 +62,13 @@ final class OrderListAllViewModel: 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
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ struct OrderListItemView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text(item.orderType == .RENTAL ? "대여중" : "소장중")
|
||||
Text(item.orderType == .RENTAL ? I18n.MyPage.OrderList.renting : I18n.MyPage.OrderList.owned)
|
||||
.appFont(size: 10.3, weight: .medium)
|
||||
.foregroundColor(item.orderType == .RENTAL ? .white : .black)
|
||||
.padding(.horizontal, 5.3)
|
||||
|
||||
@@ -13,13 +13,13 @@ struct OrderListView: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
HStack(spacing: 0) {
|
||||
Text("콘텐츠 보관함")
|
||||
Text(I18n.MyPage.OrderList.contentStorageTitle)
|
||||
.appFont(size: 18, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("전체보기")
|
||||
Text(I18n.Common.viewAll)
|
||||
.appFont(size: 11, weight: .medium)
|
||||
.foregroundColor(Color.graybb)
|
||||
.onTapGesture {
|
||||
|
||||
@@ -17,7 +17,7 @@ struct PointStatusView: View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
GeometryReader { proxy in
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: String(localized: "포인트 내역")) {
|
||||
DetailNavigationBar(title: I18n.MyPage.Point.historyTitle) {
|
||||
AppState.shared.setAppStep(step: .main)
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ struct PointStatusView: View {
|
||||
.cornerRadius(16.7)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
Text("※ 획득한 포인트는 72시간이 지나면 자동소멸 됩니다.")
|
||||
Text(I18n.MyPage.Point.expirationNotice)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(.grayee)
|
||||
.padding(.top, 13.3)
|
||||
@@ -48,7 +48,7 @@ struct PointStatusView: View {
|
||||
HStack(spacing: 0) {
|
||||
VStack(spacing: 0) {
|
||||
Spacer()
|
||||
Text("받은내역")
|
||||
Text(I18n.MyPage.Point.rewardHistory)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(viewModel.currentTab == .reward ? .grayee : .gray77)
|
||||
Spacer()
|
||||
@@ -69,7 +69,7 @@ struct PointStatusView: View {
|
||||
|
||||
VStack(spacing: 0) {
|
||||
Spacer()
|
||||
Text("사용내역")
|
||||
Text(I18n.MyPage.Point.useHistory)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(viewModel.currentTab == .use ? .grayee : .gray77)
|
||||
Spacer()
|
||||
|
||||
@@ -48,13 +48,13 @@ final class PointStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -86,13 +86,13 @@ final class PointStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -124,13 +124,13 @@ final class PointStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,16 +16,16 @@ struct NicknameUpdateView: View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
GeometryReader { proxy in
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "프로필 수정")
|
||||
DetailNavigationBar(title: I18n.MyPage.Main.editProfile)
|
||||
|
||||
Text("닉네임 변경으로 인해 피해를 입는 사용자가 지속적으로 발생하여 닉네임 변경을 부득이하게 유료로 전환합니다.")
|
||||
Text(I18n.MyPage.Nickname.paidChangeNotice)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.frame(width: screenSize().width - 40, alignment: .leading)
|
||||
.padding(.top, 40)
|
||||
|
||||
Text("최초 1회에 한해서 무료로 변경이 가능하고, 그 이후부터는 유료로 전환됩니다.")
|
||||
Text(I18n.MyPage.Nickname.firstFreeNotice)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color(hex: "dd4500"))
|
||||
@@ -40,7 +40,7 @@ struct NicknameUpdateView: View {
|
||||
.frame(width: screenSize().width - 40)
|
||||
.padding(.top, 40)
|
||||
|
||||
Text("중복확인")
|
||||
Text(I18n.MyPage.Nickname.duplicateCheckAction)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.frame(width: screenSize().width - 40)
|
||||
@@ -57,7 +57,7 @@ struct NicknameUpdateView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text(viewModel.price > 0 ? "\(viewModel.price)캔으로 닉네임 변경하기" : "닉네임 변경하기")
|
||||
Text(viewModel.price > 0 ? I18n.MyPage.Nickname.changeActionWithCans(viewModel.price) : I18n.MyPage.Nickname.changeAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.vertical, 16)
|
||||
|
||||
@@ -56,14 +56,14 @@ final class NicknameUpdateViewModel: ObservableObject {
|
||||
if let message = decoded.message {
|
||||
self.errorMessage = message
|
||||
} else {
|
||||
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
||||
self.errorMessage = I18n.Common.commonError
|
||||
}
|
||||
|
||||
self.isShowPopup = true
|
||||
}
|
||||
} catch {
|
||||
ERROR_LOG(error.localizedDescription)
|
||||
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
||||
self.errorMessage = I18n.Common.commonError
|
||||
self.isShowPopup = true
|
||||
}
|
||||
}
|
||||
@@ -92,25 +92,25 @@ final class NicknameUpdateViewModel: ObservableObject {
|
||||
|
||||
if decoded.success {
|
||||
self.isCheckedNickname = true
|
||||
self.errorMessage = "사용가능한 닉네임 입니다."
|
||||
self.errorMessage = I18n.MyPage.Nickname.available
|
||||
self.isShowPopup = true
|
||||
} else {
|
||||
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
|
||||
}
|
||||
}
|
||||
.store(in: &subscription)
|
||||
} else {
|
||||
self.errorMessage = "닉네임을 입력하세요."
|
||||
self.errorMessage = I18n.MyPage.Nickname.empty
|
||||
self.isShowPopup = true
|
||||
}
|
||||
}
|
||||
@@ -138,7 +138,7 @@ final class NicknameUpdateViewModel: ObservableObject {
|
||||
|
||||
if decoded.success {
|
||||
UserDefaults.set(nickname, forKey: .nickname)
|
||||
self.errorMessage = "닉네임이 변경되었습니다."
|
||||
self.errorMessage = I18n.MyPage.Nickname.changed
|
||||
self.isShowPopup = true
|
||||
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
@@ -148,20 +148,20 @@ final class NicknameUpdateViewModel: 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
|
||||
}
|
||||
}
|
||||
.store(in: &subscription)
|
||||
|
||||
} else {
|
||||
self.errorMessage = "닉네임 중복체크를 해주세요."
|
||||
self.errorMessage = I18n.MyPage.Nickname.duplicateCheckRequired
|
||||
self.isShowPopup = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ struct ProfileUpdateView: View {
|
||||
func EmailAndPasswordView() -> some View {
|
||||
VStack(spacing: 26.7) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("이메일")
|
||||
Text(I18n.User.emailTitle)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -45,7 +45,7 @@ struct ProfileUpdateView: View {
|
||||
|
||||
HStack(alignment: .bottom, spacing: 13.3) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("비밀번호")
|
||||
Text(I18n.User.passwordTitle)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -63,7 +63,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
Button(action: { AppState.shared.setAppStep(step: .modifyPassword) }) {
|
||||
Text("비밀번호 변경")
|
||||
Text(I18n.ProfileUpdate.modifyPasswordTitle)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.vertical, 13.3)
|
||||
@@ -85,7 +85,7 @@ struct ProfileUpdateView: View {
|
||||
VStack(spacing: 16.7) {
|
||||
HStack(alignment: .bottom, spacing: 13.3) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("닉네임")
|
||||
Text(I18n.ProfileUpdate.nicknameHint)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -103,7 +103,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
Button(action: { AppState.shared.setAppStep(step: .changeNickname) }) {
|
||||
Text("닉네임 변경")
|
||||
Text(I18n.MyPage.Profile.changeNicknameAction)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.vertical, 13.3)
|
||||
@@ -114,7 +114,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("성별")
|
||||
Text(I18n.MyPage.Profile.genderTitle)
|
||||
.appFont(size: 12, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -126,7 +126,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("여자")
|
||||
Text(I18n.MyPage.Profile.female)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -140,7 +140,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("남자")
|
||||
Text(I18n.MyPage.Profile.male)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -154,7 +154,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("공개 안 함")
|
||||
Text(I18n.MyPage.Profile.notPublic)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -220,7 +220,7 @@ struct ProfileUpdateView: View {
|
||||
@ViewBuilder
|
||||
func TagSelectView() -> some View {
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("관심사")
|
||||
Text(I18n.MyPage.Profile.interestsTitle)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -228,7 +228,7 @@ struct ProfileUpdateView: View {
|
||||
hideKeyboard()
|
||||
isShowSelectTagView = true
|
||||
}) {
|
||||
Text("관심사 선택")
|
||||
Text(I18n.MyPage.Profile.selectInterestsAction)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.vertical, 13.7)
|
||||
@@ -275,7 +275,7 @@ struct ProfileUpdateView: View {
|
||||
@ViewBuilder
|
||||
func ContentInputView() -> some View {
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("소개글")
|
||||
Text(I18n.MyPage.Profile.introductionTitle)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -296,7 +296,7 @@ struct ProfileUpdateView: View {
|
||||
GeometryReader { proxy in
|
||||
ZStack {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "프로필 수정")
|
||||
DetailNavigationBar(title: I18n.MyPage.Main.editProfile)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
@@ -364,7 +364,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue {
|
||||
Text("저장하기")
|
||||
Text(I18n.MyPage.Profile.saveAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.frame(width: screenSize().width - 26.7, height: 50)
|
||||
@@ -394,7 +394,7 @@ struct ProfileUpdateView: View {
|
||||
if UserDefaults.string(forKey: .role) != MemberRole.CREATOR.rawValue {
|
||||
Spacer()
|
||||
|
||||
Text("저장하기")
|
||||
Text(I18n.MyPage.Profile.saveAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.frame(width: screenSize().width - 26.7, height: 50)
|
||||
|
||||
@@ -29,7 +29,7 @@ struct MemberTagView: View {
|
||||
|
||||
VStack(spacing: 0) {
|
||||
HStack(alignment: .top, spacing: 0) {
|
||||
Text("관심사 선택")
|
||||
Text(I18n.MyPage.Profile.selectInterestsAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
|
||||
@@ -87,7 +87,7 @@ struct MemberTagView: View {
|
||||
.padding(.horizontal, 20)
|
||||
.padding(.top, 26.7)
|
||||
|
||||
Text("확인")
|
||||
Text(I18n.Common.confirm)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
.padding(.vertical, 16)
|
||||
|
||||
@@ -44,13 +44,13 @@ final class MemberTagViewModel: 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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -50,8 +50,8 @@ struct LiveReservationStatusItemView: View {
|
||||
HStack(spacing: 0) {
|
||||
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))
|
||||
@@ -59,7 +59,7 @@ struct LiveReservationStatusItemView: View {
|
||||
Spacer()
|
||||
|
||||
if !item.cancelable {
|
||||
Text("예약 취소 불가")
|
||||
Text(I18n.MyPage.Reservation.LiveStatus.cancelUnavailable)
|
||||
.appFont(size: 10.7, weight: .light)
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
}
|
||||
@@ -72,7 +72,7 @@ struct LiveReservationStatusItemView: View {
|
||||
if item.cancelable {
|
||||
Spacer()
|
||||
|
||||
Text("예약\n취소")
|
||||
Text(I18n.MyPage.Reservation.LiveStatus.cancelAction)
|
||||
.appFont(size: 12, weight: .bold)
|
||||
.foregroundColor(Color(hex: "9970ff"))
|
||||
.padding(10.7)
|
||||
|
||||
@@ -14,7 +14,7 @@ struct LiveReservationStatusView: View {
|
||||
var body: some View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "라이브 예약 현황")
|
||||
DetailNavigationBar(title: I18n.MyPage.Reservation.LiveStatus.title)
|
||||
|
||||
if viewModel.reservationStatusItems.count > 0 {
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
@@ -26,7 +26,7 @@ struct LiveReservationStatusView: View {
|
||||
.padding(.vertical, 13.3)
|
||||
}
|
||||
} else {
|
||||
Text("예약한 라이브가 없습니다.")
|
||||
Text(I18n.MyPage.Reservation.LiveStatus.emptyMessage)
|
||||
.appFont(size: 15, weight: .medium)
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
.frame(maxHeight: .infinity)
|
||||
|
||||
@@ -20,7 +20,13 @@ final class LiveReservationStatusViewModel: ObservableObject {
|
||||
@Published var reservationStatusItems = [GetLiveReservationResponse]()
|
||||
@Published var selectedReservationStatusItem: GetLiveReservationResponse?
|
||||
|
||||
let cancelReasons = ["중요한 개인일정이 생겨서", "다른 라이브에 참여하고 싶어서", "라이브 참여자 중 불편한 사람이 있어서", "참여비용이 부담되서", "기타"]
|
||||
let cancelReasons = [
|
||||
I18n.MyPage.Reservation.Cancel.reasonPersonalSchedule,
|
||||
I18n.MyPage.Reservation.Cancel.reasonOtherLive,
|
||||
I18n.MyPage.Reservation.Cancel.reasonUncomfortableParticipant,
|
||||
I18n.MyPage.Reservation.Cancel.reasonPriceBurden,
|
||||
I18n.MyPage.Reservation.Cancel.reasonEtc
|
||||
]
|
||||
@Published var cancelReasonSelectedIndex = -1
|
||||
@Published var reason = ""
|
||||
|
||||
@@ -51,13 +57,13 @@ final class LiveReservationStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -89,13 +95,13 @@ final class LiveReservationStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -104,7 +110,7 @@ final class LiveReservationStatusViewModel: ObservableObject {
|
||||
|
||||
func cancelReservation(reservationId: Int) {
|
||||
if cancelReasonSelectedIndex < 0 || (cancelReasonSelectedIndex == self.cancelReasons.count - 1 && self.reason.trimmingCharacters(in: .whitespaces).count <= 0) {
|
||||
self.errorMessage = "취소이유를 선택해주세요."
|
||||
self.errorMessage = I18n.MyPage.Reservation.Cancel.reasonRequired
|
||||
self.isShowPopup = true
|
||||
return
|
||||
}
|
||||
@@ -134,13 +140,13 @@ final class LiveReservationStatusViewModel: 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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ struct ReservationStatusView: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("예약현황")
|
||||
Text(I18n.MyPage.ReservationStatus.title)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
@@ -24,7 +24,7 @@ struct ReservationStatusView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("라이브")
|
||||
Text(I18n.MyPage.ReservationStatus.live)
|
||||
.appFont(size: 14.7, weight: .bold)
|
||||
.foregroundColor(Color(hex: "3bb9f1"))
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ struct FaqView: View {
|
||||
|
||||
VStack(spacing: 0) {
|
||||
HStack(alignment: .top, spacing: 6.7) {
|
||||
Text("Q")
|
||||
Text(I18n.MyPage.ServiceCenter.questionPrefix)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
|
||||
@@ -41,7 +41,7 @@ struct FaqView: View {
|
||||
|
||||
if openIndex == index {
|
||||
HStack(alignment: .top, spacing: 6.7) {
|
||||
Text("A")
|
||||
Text(I18n.MyPage.ServiceCenter.answerPrefix)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
@@ -14,7 +14,7 @@ struct ServiceCenterButtonView: View {
|
||||
.resizable()
|
||||
.frame(width: 26.7, height: 26.7)
|
||||
|
||||
Text("보이스온 고객센터")
|
||||
Text(I18n.MyPage.ServiceCenter.buttonTitle)
|
||||
.appFont(size: 15.3, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ struct ServiceCenterView: View {
|
||||
var body: some View {
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "고객센터")
|
||||
DetailNavigationBar(title: I18n.MyPage.Category.customerCenter)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
@@ -23,7 +23,7 @@ struct ServiceCenterView: View {
|
||||
.scaledToFill()
|
||||
.frame(width: 106.7, height: 106.7, alignment: .top)
|
||||
|
||||
Text("고객센터")
|
||||
Text(I18n.MyPage.Category.customerCenter)
|
||||
.appFont(size: 20, weight: .bold)
|
||||
.foregroundColor(.grayee)
|
||||
.padding(.top, 20)
|
||||
@@ -34,7 +34,7 @@ struct ServiceCenterView: View {
|
||||
.scaledToFill()
|
||||
.frame(width: 21, height: 18.8, alignment: .top)
|
||||
|
||||
Text("TALK 문의")
|
||||
Text(I18n.MyPage.ServiceCenter.talkInquiry)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(.black)
|
||||
}
|
||||
@@ -53,7 +53,7 @@ struct ServiceCenterView: View {
|
||||
.foregroundColor(.gray23)
|
||||
.padding(.vertical, 20)
|
||||
|
||||
Text("자주 묻는 질문")
|
||||
Text(I18n.MyPage.ServiceCenter.faqTitle)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(.grayee)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
@@ -54,13 +54,13 @@ final class ServiceCenterViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -93,13 +93,13 @@ final class ServiceCenterViewModel: 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