회원탈퇴 문구 다국어화
This commit is contained in:
@@ -13,18 +13,7 @@ final class SignOutViewModel: ObservableObject {
|
||||
private let repository = UserRepository()
|
||||
private var subscription = Set<AnyCancellable>()
|
||||
|
||||
let reasons = [
|
||||
"닉네임을 변경하고 싶어서",
|
||||
"다른 사용자와의 다툼이 있어서",
|
||||
"이용이 불편하고 장애가 많아서",
|
||||
"서비스 운영이 마음에 들지 않아서",
|
||||
"다른 서비스가 더 좋아서",
|
||||
"삭제하고 싶은 내용이 있어서",
|
||||
"이용빈도가 낮아서",
|
||||
"원하는 콘텐츠나 크리에이터가 없어서",
|
||||
"이용요금이 비싸서",
|
||||
"기타"
|
||||
]
|
||||
let reasons = I18n.Settings.SignOut.reasons
|
||||
|
||||
@Published var reasonSelectedIndex = -1
|
||||
@Published var reason = ""
|
||||
@@ -62,13 +51,13 @@ final class SignOutViewModel: 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
|
||||
}
|
||||
}
|
||||
@@ -78,7 +67,7 @@ final class SignOutViewModel: ObservableObject {
|
||||
|
||||
private func validate() -> Bool {
|
||||
if reasonSelectedIndex < 0 || (reasonSelectedIndex == reasons.count - 1 && self.reason.trimmingCharacters(in: .whitespaces).isEmpty) {
|
||||
errorMessage = "계정을 삭제하려는 이유를 선택해 주세요."
|
||||
errorMessage = I18n.Settings.SignOut.selectReasonRequired
|
||||
isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user