프로필과 시리즈 문구를 I18n으로 정리

프로필/시리즈 화면의 문자열을 I18n 및 Localizable로 통일한다.
채널 공유·예약·유료 라이브 관련 안내 문구를 다국어로 제공한다.
This commit is contained in:
Yu Sung
2025-12-18 17:52:02 +09:00
parent 982a17bb41
commit 8bcbd3aca0
7 changed files with 182 additions and 90 deletions

View File

@@ -65,7 +65,7 @@ struct UserProfileView: View {
}
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) {
Text("팔로워 리스트")
Text(I18n.MemberChannel.followersList)
.font(.custom(Font.preBold.rawValue, size: 16))
.foregroundColor(Color.black)
.padding(.vertical, 8)
@@ -77,7 +77,7 @@ struct UserProfileView: View {
}
} else {
VStack(alignment: .leading, spacing: 9.3) {
Text("팔로워 \(creatorProfile.creator.notificationRecipientCount)")
Text(I18n.MemberChannel.followerCount(creatorProfile.creator.notificationRecipientCount))
.font(.custom(Font.preMedium.rawValue, size: 16))
.foregroundColor(Color.white)
}
@@ -98,7 +98,7 @@ struct UserProfileView: View {
.cornerRadius(12)
VStack(alignment: .leading, spacing: 8) {
Text("최신 콘텐츠")
Text(I18n.Common.latestContent)
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(.button)
.padding(.horizontal, 7)
@@ -113,7 +113,7 @@ struct UserProfileView: View {
HStack(spacing: 8) {
if item.isScheduledToOpen {
Text("오픈예정")
Text(I18n.Common.openScheduled)
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(2.6)
@@ -136,7 +136,7 @@ struct UserProfileView: View {
.cornerRadius(2.6)
if item.isPointAvailable {
Text("포인트")
Text(I18n.Common.points)
.font(.custom(Font.preMedium.rawValue, size: 12))
.foregroundColor(.white)
.padding(2.6)
@@ -189,7 +189,7 @@ struct UserProfileView: View {
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) || creatorProfile.liveRoomList.count > 0 {
VStack(alignment: .leading, spacing: 14) {
HStack(spacing: 0) {
Text("라이브")
Text(I18n.MemberChannel.liveHeader)
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(Color.white)
@@ -198,7 +198,7 @@ struct UserProfileView: View {
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) {
HStack(spacing: 8) {
Text("룰렛 설정")
Text(I18n.MemberChannel.rouletteSettings)
.font(.custom(Font.preBold.rawValue, size: 16))
.foregroundColor(Color.grayee)
.padding(.vertical, 12)
@@ -207,7 +207,7 @@ struct UserProfileView: View {
.cornerRadius(12)
.onTapGesture { isShowRouletteSettings = true }
Text("메뉴 설정")
Text(I18n.MemberChannel.menuSettings)
.font(.custom(Font.preBold.rawValue, size: 16))
.foregroundColor(Color.grayee)
.padding(.vertical, 12)
@@ -224,7 +224,7 @@ struct UserProfileView: View {
liveRoomList: creatorProfile.liveRoomList,
onClickParticipant: { liveRoom in
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) {
viewModel.errorMessage = "현재 라이브 중입니다."
viewModel.errorMessage = I18n.MemberChannel.liveOnNow
viewModel.isShowPopup = true
} else {
AppState.shared.isShowPlayer = false
@@ -235,7 +235,7 @@ struct UserProfileView: View {
},
onClickReservation: { liveRoom in
if creatorProfile.creator.creatorId == UserDefaults.int(forKey: .userId) {
viewModel.errorMessage = "내가 만든 라이브는 예약할 수 없습니다."
viewModel.errorMessage = I18n.MemberChannel.cannotReserveOwnLive
viewModel.isShowPopup = true
} else {
viewModel.reservationLiveRoom(roomId: liveRoom.roomId)
@@ -259,7 +259,7 @@ struct UserProfileView: View {
VStack(alignment: .leading, spacing: 14) {
HStack(spacing: 0) {
Text("커뮤니티")
Text(I18n.MemberChannel.communityHeader)
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(Color.white)
.padding(.horizontal, 24)
@@ -430,14 +430,14 @@ struct UserProfileView: View {
if viewModel.isShowCheersDeleteView {
SodaDialog(
title: "응원글 삭제",
desc: "삭제하시겠습니까?",
confirmButtonTitle: "삭제",
title: I18n.MemberChannel.cheersDeleteTitle,
desc: I18n.Common.confirmDeleteQuestion,
confirmButtonTitle: I18n.Common.delete,
confirmButtonAction: {
viewModel.deleteCheers(creatorId: userId)
viewModel.isShowCheersDeleteView = false
},
cancelButtonTitle: "취소",
cancelButtonTitle: I18n.Common.cancel,
cancelButtonAction: { viewModel.isShowCheersDeleteView = false }
)
}