feat(i18n): 탐색 프로필 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -32,7 +32,7 @@ final class UserProfileViewModel: ObservableObject {
|
||||
@Published var passwordDialogConfirmAction: (String) -> Void = { _ in }
|
||||
@Published var isShowPasswordDialog = false
|
||||
|
||||
@Published var navigationTitle = "채널"
|
||||
@Published var navigationTitle = I18n.Explorer.channel
|
||||
|
||||
@Published private(set) var creatorProfile: GetCreatorProfileResponse?
|
||||
@Published private(set) var creatorDetail: GetCreatorDetailResponse?
|
||||
@@ -516,7 +516,7 @@ final class UserProfileViewModel: ObservableObject {
|
||||
|
||||
if decoded.success {
|
||||
getCreatorProfile(userId: userId)
|
||||
self.errorMessage = "차단이 해제 되었습니다."
|
||||
self.errorMessage = I18n.MemberChannel.userUnblocked
|
||||
} else {
|
||||
if let message = decoded.message {
|
||||
self.errorMessage = message
|
||||
@@ -534,7 +534,7 @@ final class UserProfileViewModel: ObservableObject {
|
||||
.store(in: &subscription)
|
||||
}
|
||||
|
||||
func report(type: ReportType, userId: Int? = nil, reason: String = "프로필 신고") {
|
||||
func report(type: ReportType, userId: Int? = nil, reason: String = I18n.Dialog.MemberProfile.reportProfile) {
|
||||
isLoading = true
|
||||
|
||||
let request = ReportRequest(type: type, reason: reason, reportedMemberId: userId, cheersId: cheersId > 0 && type == .CHEERS ? cheersId : nil, audioContentId: nil)
|
||||
|
||||
Reference in New Issue
Block a user