feat(i18n): 주요 UI 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -25,7 +25,7 @@ struct MemberProfileDialog: View {
|
||||
|
||||
VStack(alignment: .leading, spacing: 21) {
|
||||
HStack(spacing: 0) {
|
||||
Text("프로필")
|
||||
Text(I18n.Dialog.MemberProfile.title)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -56,7 +56,7 @@ struct MemberProfileDialog: View {
|
||||
.cornerRadius(8)
|
||||
|
||||
HStack(spacing: 8) {
|
||||
Text(profile.isBlocked ? "차단 해제" : "차단")
|
||||
Text(profile.isBlocked ? I18n.Dialog.MemberProfile.unblock : I18n.MemberChannel.blockAction)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -76,7 +76,7 @@ struct MemberProfileDialog: View {
|
||||
}
|
||||
}
|
||||
|
||||
Text("사용자 신고")
|
||||
Text(I18n.Dialog.MemberProfile.reportUser)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -90,7 +90,7 @@ struct MemberProfileDialog: View {
|
||||
)
|
||||
.onTapGesture { viewModel.isShowUesrReportView = true }
|
||||
|
||||
Text("프로필 신고")
|
||||
Text(I18n.Dialog.MemberProfile.reportProfile)
|
||||
.appFont(size: 15, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -115,7 +115,7 @@ struct MemberProfileDialog: View {
|
||||
.frame(maxWidth: screenSize().width - 33.3)
|
||||
.onAppear {
|
||||
if memberId <= 1 {
|
||||
viewModel.errorMessage = "잘못된 요청입니다."
|
||||
viewModel.errorMessage = I18n.Dialog.MemberProfile.invalidRequest
|
||||
viewModel.isShowPopup = true
|
||||
} else {
|
||||
viewModel.getMemberProfile(memberId: memberId)
|
||||
|
||||
Reference in New Issue
Block a user