feat(i18n): 라이브 룸 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 13:52:02 +09:00
parent 540238eb48
commit bceec46ebc
36 changed files with 571 additions and 324 deletions

View File

@@ -18,7 +18,7 @@ struct LiveRoomInfoEditDialog: View {
@State private var isAdult = false
@State private var isEntryMessageEnabled = true
let placeholder = "라이브 공지를 입력하세요"
let placeholder = I18n.CreateLive.noticePlaceholder
@StateObject var viewModel: LiveRoomViewModel
@@ -62,7 +62,7 @@ struct LiveRoomInfoEditDialog: View {
ScrollView(.vertical, showsIndicators: false) {
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 0) {
Text("라이브 수정")
Text(I18n.CreateLive.editLiveTitle)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color.grayee)
@@ -131,12 +131,12 @@ struct LiveRoomInfoEditDialog: View {
if UserDefaults.bool(forKey: .auth) {
VStack(alignment: .leading, spacing: 8) {
Text("연령제한")
Text(I18n.CreateLive.ageRestrictionLabel)
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color.grayee)
HStack(spacing: 0) {
Text("19세 이상")
Text(I18n.CreateLive.over19)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayee)
@@ -163,7 +163,7 @@ struct LiveRoomInfoEditDialog: View {
.padding(.top, 33.3)
HStack(spacing: 0) {
Text("입장메시지")
Text(I18n.CreateLive.entryMessageLabel)
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color.grayee)
@@ -179,7 +179,7 @@ struct LiveRoomInfoEditDialog: View {
.padding(.top, 33.3)
HStack(spacing: 13.3) {
Text("취소")
Text(I18n.Common.cancel)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color.button)
.padding(.vertical, 16)
@@ -195,7 +195,7 @@ struct LiveRoomInfoEditDialog: View {
isShowing = false
}
Text("수정하기")
Text(I18n.CreateLive.editAction)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(.white)
.padding(.vertical, 16)
@@ -251,11 +251,11 @@ struct LiveRoomInfoEditDialog: View {
@ViewBuilder
func TitleInputView() -> some View {
VStack(alignment: .leading, spacing: 0) {
Text("제목")
Text(I18n.CreateLive.titleLabel)
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color.grayee)
TextField("라이브 제목을 입력하세요", text: $title)
TextField(I18n.CreateLive.titlePlaceholder, text: $title)
.autocapitalization(.none)
.disableAutocorrection(true)
.appFont(size: 13.3, weight: .medium)
@@ -276,16 +276,16 @@ struct LiveRoomInfoEditDialog: View {
func ContentInputView() -> some View {
VStack(spacing: 13.3) {
HStack(spacing: 0) {
Text("공지")
Text(I18n.CreateLive.noticeLabel)
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color.grayee)
Spacer()
Text("\(notice.count)")
Text(I18n.CreateLive.noticeCount(notice.count))
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.mainRed)
Text(" / 1000자")
Text(I18n.CreateLive.noticeLimitSuffix)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.gray77)
}