feat(i18n): 탐색 프로필 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 14:40:37 +09:00
parent bceec46ebc
commit 038d66e363
39 changed files with 599 additions and 247 deletions

View File

@@ -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)