feat(i18n): 홈 화면 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -45,7 +45,7 @@ struct HomeCreatorRankingItemView: View {
|
||||
Spacer()
|
||||
|
||||
if item.id != UserDefaults.int(forKey: .userId) {
|
||||
Text(item.follow ? "팔로잉" : "팔로우")
|
||||
Text(item.follow ? I18n.LiveRoom.following : I18n.LiveRoom.follow)
|
||||
.appFont(size: 14, weight: .regular)
|
||||
.padding(.vertical, 4)
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
@@ -23,13 +23,13 @@ struct HomeLatestContentView: View {
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
Text("최신 콘텐츠")
|
||||
Text(I18n.Common.latestContent)
|
||||
.appFont(size: 24, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("전체보기")
|
||||
Text(I18n.Common.viewAll)
|
||||
.appFont(size: 14, weight: .regular)
|
||||
.foregroundColor(.init(hex: "78909C"))
|
||||
.onTapGesture { onClickMore() }
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ struct HomeWeeklyChartView: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 16) {
|
||||
HStack(spacing: 0) {
|
||||
Text("보온 주간 차트")
|
||||
Text(I18n.Home.weeklyChartSectionTitle)
|
||||
.appFont(size: 24, weight: .bold)
|
||||
.foregroundColor(.white)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ struct RecommendChannelItemView: View {
|
||||
.foregroundColor(.white)
|
||||
|
||||
HStack(spacing: 4) {
|
||||
Text("콘텐츠")
|
||||
Text(I18n.Home.RecommendChannel.contentLabel)
|
||||
.appFont(size: 18, weight: .regular)
|
||||
.foregroundColor(.white)
|
||||
|
||||
|
||||
@@ -1800,6 +1800,7 @@ enum I18n {
|
||||
static var selectTheme: String { pick(ko: "테마 선택", en: "Select theme", ja: "テーマ選択") }
|
||||
static var uploadContentDescriptionHint: String { pick(ko: "내용을 입력하세요", en: "Enter the details.", ja: "内容を入力してください") }
|
||||
static var uploadTitle: String { pick(ko: "콘텐츠 업로드", en: "Content upload", ja: "コンテンツ投稿") }
|
||||
static var uploadAction: String { pick(ko: "콘텐츠 업로드", en: "Upload content", ja: "コンテンツを投稿") }
|
||||
static var uploadDescription: String {
|
||||
pick(
|
||||
ko: "등록한 콘텐츠가 업로드 중입니다.\n콘텐츠 등록이 완료되면 알림을 보내드립니다.\n이 페이지를 나가도 콘텐츠는 자동으로 등록됩니다.",
|
||||
@@ -2178,6 +2179,50 @@ If you block this user, the following features will be restricted.
|
||||
}
|
||||
}
|
||||
|
||||
enum Home {
|
||||
static var liveNowSectionTitle: String {
|
||||
pick(ko: "지금 라이브중", en: "Live now", ja: "ライブ配信中")
|
||||
}
|
||||
|
||||
static var popularCreatorSectionTitle: String {
|
||||
pick(ko: "인기 크리에이터", en: "Popular creators", ja: "人気クリエイター")
|
||||
}
|
||||
|
||||
static var onlyOnVoiceOnSectionTitle: String {
|
||||
pick(ko: "오직 보이스온에서만", en: "Only on VoiceOn", ja: "VoiceOnだけで")
|
||||
}
|
||||
|
||||
static var popularCharacterChatSectionTitle: String {
|
||||
pick(ko: "인기 캐릭터 채팅", en: "Popular character chats", ja: "人気キャラクターチャット")
|
||||
}
|
||||
|
||||
static var recommendChannelSectionTitle: String {
|
||||
pick(ko: "추천 채널", en: "Recommended channels", ja: "おすすめチャンネル")
|
||||
}
|
||||
|
||||
static var freeContentSectionTitle: String {
|
||||
pick(ko: "무료 콘텐츠", en: "Free content", ja: "無料コンテンツ")
|
||||
}
|
||||
|
||||
static var pointRentalContentSectionTitle: String {
|
||||
pick(ko: "포인트 대여 콘텐츠", en: "Point rental content", ja: "ポイントレンタルコンテンツ")
|
||||
}
|
||||
|
||||
static var recommendContentSectionTitle: String {
|
||||
pick(ko: "추천 콘텐츠", en: "Recommended content", ja: "おすすめコンテンツ")
|
||||
}
|
||||
|
||||
static var weeklyChartSectionTitle: String {
|
||||
pick(ko: "보온 주간 차트", en: "VoiceOn weekly chart", ja: "ボイスオン週間チャート")
|
||||
}
|
||||
|
||||
enum RecommendChannel {
|
||||
static var contentLabel: String {
|
||||
pick(ko: "콘텐츠", en: "Content", ja: "コンテンツ")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum Dialog {
|
||||
enum ApplyAuditionComplete {
|
||||
static var thankYouDescription: String {
|
||||
|
||||
Reference in New Issue
Block a user