feat(i18n): 사용자 화면 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-03-31 17:37:29 +09:00
parent b2f66cf408
commit 8e4fe7a534
18 changed files with 551 additions and 256 deletions

View File

@@ -13,15 +13,7 @@ struct CheersReportDialogView: View {
let confirmAction: (String) -> Void
@State private var selectedIndex: Int? = nil
let reasons = [
"원치 않는 상업성 콘텐츠 또는 스팸",
"아동 학대",
"증오심 표현 또는 노골적인 폭력",
"테러 조장",
"희롱 또는 괴롭힘",
"자살 또는 자해",
"잘못된 정보"
]
let reasons = I18n.Report.cheersReasons
var body: some View {
ZStack {
@@ -31,7 +23,7 @@ struct CheersReportDialogView: View {
.onTapGesture { isShowing = false }
VStack(spacing: 13.3) {
Text("응원글 신고")
Text(I18n.Report.cheersReportTitle)
.appFont(size: 16.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
@@ -59,14 +51,14 @@ struct CheersReportDialogView: View {
HStack(spacing: 26.7) {
Spacer()
Text("취소")
Text(I18n.Common.cancel)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {
isShowing = false
}
Text("신고")
Text(I18n.Report.reportAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {

View File

@@ -20,25 +20,25 @@ struct ProfileReportDialogView: View {
.onTapGesture { isShowing = false }
VStack(spacing: 13.3) {
Text("프로필 사진 신고")
Text(I18n.Report.profilePhotoReportTitle)
.appFont(size: 16.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
Text("신고제도를 남용할 경우, 계정에 제약이 있을 수 있습니다.\n프로필 사진을 신고하시겠습니까?")
Text(I18n.Report.profilePhotoReportDescription)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "909090"))
HStack(spacing: 26.7) {
Spacer()
Text("취소")
Text(I18n.Common.cancel)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {
isShowing = false
}
Text("신고")
Text(I18n.Report.reportAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {

View File

@@ -29,7 +29,7 @@ struct ProfileReportMenuView: View {
VStack(spacing: 13.3) {
HStack(spacing: 0) {
Text(isBlockedUser ? "사용자 차단해제" : "사용자 차단하기")
Text(isBlockedUser ? I18n.User.unblockUserAction : I18n.User.blockUserAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)
@@ -48,7 +48,7 @@ struct ProfileReportMenuView: View {
}
HStack(spacing: 0) {
Text("사용자 신고하기")
Text(I18n.User.reportUserAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)
@@ -63,7 +63,7 @@ struct ProfileReportMenuView: View {
}
HStack(spacing: 0) {
Text("프로필 신고하기")
Text(I18n.User.reportProfileAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(.white)

View File

@@ -13,16 +13,7 @@ struct UserReportDialogView: View {
let confirmAction: (String) -> Void
@State private var selectedIndex: Int? = nil
let reasons = [
"괴롭힘 및 사이버 폭력",
"개인정보 침해",
"명의 도용",
"폭력적 위협",
"아동 학대",
"보호 대상 집단에 대한 증오심 표현",
"스팸 및 사기",
"나에게 해당하는 문제 없음"
]
let reasons = I18n.Report.userReasons
var body: some View {
ZStack {
@@ -32,7 +23,7 @@ struct UserReportDialogView: View {
.onTapGesture { isShowing = false }
VStack(spacing: 13.3) {
Text("사용자 신고")
Text(I18n.Report.userReportTitle)
.appFont(size: 16.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
@@ -60,14 +51,14 @@ struct UserReportDialogView: View {
HStack(spacing: 26.7) {
Spacer()
Text("취소")
Text(I18n.Common.cancel)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {
isShowing = false
}
Text("신고")
Text(I18n.Report.reportAction)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "3bb9f1"))
.onTapGesture {