feat(i18n): 주요 UI 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -16,7 +16,7 @@ struct BottomTabView: View {
|
||||
let tabWidth = width / 4
|
||||
|
||||
TabButton(
|
||||
title: "홈",
|
||||
title: I18n.Main.Tab.home,
|
||||
action: {
|
||||
if currentTab != .home {
|
||||
currentTab = .home
|
||||
@@ -37,7 +37,7 @@ struct BottomTabView: View {
|
||||
)
|
||||
|
||||
TabButton(
|
||||
title: "라이브",
|
||||
title: I18n.Main.Tab.live,
|
||||
action: {
|
||||
if currentTab != .live {
|
||||
currentTab = .live
|
||||
@@ -58,7 +58,7 @@ struct BottomTabView: View {
|
||||
)
|
||||
|
||||
TabButton(
|
||||
title: "채팅",
|
||||
title: I18n.Main.Tab.chat,
|
||||
action: {
|
||||
if currentTab != .chat {
|
||||
currentTab = .chat
|
||||
@@ -79,7 +79,7 @@ struct BottomTabView: View {
|
||||
)
|
||||
|
||||
TabButton(
|
||||
title: "마이",
|
||||
title: I18n.Main.Tab.my,
|
||||
action: {
|
||||
if currentTab != .mypage {
|
||||
currentTab = .mypage
|
||||
|
||||
@@ -216,15 +216,14 @@ struct HomeView: View {
|
||||
|
||||
if isShowAuthConfirmView {
|
||||
SodaDialog(
|
||||
title: "본인인증",
|
||||
desc: "청소년 보호를 위해\n본인인증을 완료한\n성인만 라이브 입장이 가능합니다.\n" +
|
||||
"라이브 입장을 위해\n본인인증을 진행해 주세요.",
|
||||
confirmButtonTitle: "본인인증 하러가기",
|
||||
title: I18n.Main.Auth.dialogTitle,
|
||||
desc: I18n.Main.Auth.liveEntryVerificationDescription,
|
||||
confirmButtonTitle: I18n.Main.Auth.goToVerification,
|
||||
confirmButtonAction: {
|
||||
isShowAuthConfirmView = false
|
||||
isShowAuthView = true
|
||||
},
|
||||
cancelButtonTitle: "취소",
|
||||
cancelButtonTitle: I18n.Common.cancel,
|
||||
cancelButtonAction: {
|
||||
isShowAuthConfirmView = false
|
||||
pendingAction = nil
|
||||
@@ -306,7 +305,7 @@ struct HomeView: View {
|
||||
isShowAuthView = false
|
||||
}
|
||||
.onError { _ in
|
||||
AppState.shared.errorMessage = "본인인증 중 오류가 발생했습니다."
|
||||
AppState.shared.errorMessage = I18n.Main.Auth.authenticationError
|
||||
AppState.shared.isShowErrorPopup = true
|
||||
isShowAuthView = false
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import SwiftUI
|
||||
|
||||
struct TabButton: View {
|
||||
|
||||
let title: LocalizedStringResource
|
||||
let title: String
|
||||
let action: () -> Void
|
||||
let image: () -> String
|
||||
let fontWeight: () -> SwiftUI.Font.Weight
|
||||
|
||||
Reference in New Issue
Block a user