fix(report): 사용자 차단 다이얼로그 문구를 국제화한다

This commit is contained in:
Yu Sung
2026-02-25 22:30:22 +09:00
parent c7ec9045ff
commit a4d6de83db
3 changed files with 108 additions and 14 deletions

View File

@@ -14,15 +14,11 @@ struct UserBlockConfirmDialogView: View {
let nickname: String
let confirmAction: () -> Void
let notice = """
사용자를 차단하면 사용자는 아래 기능이 제한됩니다.
- 내가 개설한 라이브 입장 불가
- 나에게 메시지 보내기 불가
- 내 채널의 팬Talk 작성불가
"""
let notice2 = "- 사용자를 차단하면 '차단한 사용자의 라이브 중 채팅'이 보이지 않습니다."
var notice: String {
UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue
? I18n.MemberChannel.blockCreatorNotice(nickname)
: I18n.MemberChannel.blockListenerNotice(nickname)
}
var body: some View {
ZStack {
@@ -32,16 +28,16 @@ struct UserBlockConfirmDialogView: View {
.onTapGesture { isShowing = false }
VStack(spacing: 13.3) {
Text("사용자 차단")
Text(I18n.MemberChannel.blockDialogTitle)
.appFont(size: 16.7, weight: .medium)
.foregroundColor(.white)
Text("\(nickname)님을 차단하시겠습니까?")
Text(I18n.MemberChannel.blockConfirmQuestion(nickname))
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)
HStack(spacing: 0) {
Text(UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue ? notice : notice2)
Text(notice)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)
@@ -51,14 +47,14 @@ struct UserBlockConfirmDialogView: View {
HStack(spacing: 26.7) {
Spacer()
Text("취소")
Text(I18n.Common.cancel)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.button)
.onTapGesture {
isShowing = false
}
Text("차단")
Text(I18n.MemberChannel.blockAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.button)
.onTapGesture {