feat(i18n): 홈 화면 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 11:33:26 +09:00
parent 7285c5367d
commit 201f4c8139
7 changed files with 105 additions and 49 deletions

View File

@@ -120,7 +120,7 @@ struct HomeTabView: View {
VStack(alignment: .leading, spacing: 48) {
if !viewModel.liveList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
Text("지금 라이브중")
Text(I18n.Home.liveNowSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
.padding(.horizontal, 24)
@@ -144,7 +144,7 @@ struct HomeTabView: View {
if !viewModel.creatorRanking.isEmpty {
VStack(alignment: .leading, spacing: 16) {
Text("인기 크리에이터")
Text(I18n.Home.popularCreatorSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
.padding(.horizontal, 24)
@@ -212,13 +212,13 @@ struct HomeTabView: View {
if !viewModel.originalAudioDramaList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("오직 보이스온에서만")
Text(I18n.Home.onlyOnVoiceOnSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
Spacer()
Text("전체보기")
Text(I18n.Common.viewAll)
.appFont(size: 14, weight: .regular)
.foregroundColor(.init(hex: "78909C"))
.onTapGesture {
@@ -260,10 +260,10 @@ struct HomeTabView: View {
//
if !viewModel.popularCharacters.isEmpty {
CharacterSectionView(
title: "인기 캐릭터 채팅",
title: I18n.Home.popularCharacterChatSectionTitle,
items: viewModel.popularCharacters,
isShowRank: true,
trailingTitle: "전체보기",
trailingTitle: I18n.Common.viewAll,
onTapTrailing: {
if let onTapPopularCharacterAllView = onTapPopularCharacterAllView {
onTapPopularCharacterAllView()
@@ -281,7 +281,7 @@ struct HomeTabView: View {
if !viewModel.recommendChannelList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
Text("추천 채널")
Text(I18n.Home.recommendChannelSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
.padding(.horizontal, 24)
@@ -300,13 +300,13 @@ struct HomeTabView: View {
if !viewModel.freeContentList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("무료 콘텐츠")
Text(I18n.Home.freeContentSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
Spacer()
Text("전체보기")
Text(I18n.Common.viewAll)
.appFont(size: 14, weight: .regular)
.foregroundColor(.init(hex: "78909C"))
.onTapGesture {
@@ -330,13 +330,13 @@ struct HomeTabView: View {
if !viewModel.pointAvailableContentList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("포인트 대여 콘텐츠")
Text(I18n.Home.pointRentalContentSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
Spacer()
Text("전체보기")
Text(I18n.Common.viewAll)
.appFont(size: 14, weight: .regular)
.foregroundColor(.init(hex: "78909C"))
.onTapGesture {
@@ -360,7 +360,7 @@ struct HomeTabView: View {
if !viewModel.recommendContentList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack {
Text("추천 콘텐츠")
Text(I18n.Home.recommendContentSectionTitle)
.appFont(size: 24, weight: .bold)
.foregroundColor(.white)
@@ -397,21 +397,7 @@ struct HomeTabView: View {
}
}
Text("""
- 회사명 : 주식회사 소다라이브
- 대표자 : 이재형
- 주소 : 경기도 성남시 분당구 황새울로335번길 10, 5층 563A호
- 사업자등록번호 : 870-81-03220
- 통신판매업신고 : 제2024-성남분당B-1012호
- 고객센터 : 02.2055.1477 (이용시간 10:00~19:00)
- 대표 이메일 : sodalive.official@gmail.com
""")
Text(I18n.Settings.companyInfo)
.appFont(size: 11, weight: .regular)
.foregroundColor(Color.gray77)
.padding(.horizontal, 13.3)
@@ -425,8 +411,8 @@ struct HomeTabView: View {
Image("ic_thumb_play")
.resizable()
.frame(width: 20, height: 20)
Text("콘텐츠 업로드")
Text(I18n.CreateContent.uploadAction)
.appFont(size: 13.3, weight: .bold)
.foregroundColor(.white)
}
@@ -442,15 +428,14 @@ struct HomeTabView: View {
if isShowAuthConfirmView {
SodaDialog(
title: "본인인증",
desc: "보이스온의 오픈월드 캐릭터톡은\n청소년 보호를 위해 본인인증한\n성인만 이용이 가능합니다.\n" +
"캐릭터톡 서비스를 이용하시려면\n본인인증을 하고 이용해주세요.",
confirmButtonTitle: "본인인증 하러가기",
title: I18n.Chat.Auth.dialogTitle,
desc: I18n.Chat.Auth.dialogDescription,
confirmButtonTitle: I18n.Chat.Auth.goToVerification,
confirmButtonAction: {
isShowAuthConfirmView = false
isShowAuthView = true
},
cancelButtonTitle: "취소",
cancelButtonTitle: I18n.Common.cancel,
cancelButtonAction: {
isShowAuthConfirmView = false
pendingAction = nil
@@ -517,7 +502,7 @@ struct HomeTabView: View {
isShowAuthView = false
}
.onError { _ in
AppState.shared.errorMessage = "본인인증 중 오류가 발생했습니다."
AppState.shared.errorMessage = I18n.Chat.Auth.authenticationError
AppState.shared.isShowErrorPopup = true
isShowAuthView = false
}