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

This commit is contained in:
Yu Sung
2026-03-31 19:46:21 +09:00
parent 3f61a08a04
commit 4c170e0f97
17 changed files with 354 additions and 94 deletions

View File

@@ -16,7 +16,7 @@ struct EventDetailView: View {
BaseView {
GeometryReader { proxy in
VStack(spacing: 0) {
DetailNavigationBar(title: "이벤트 상세")
DetailNavigationBar(title: I18n.Settings.Event.detailTitle)
ScrollView(.vertical, showsIndicators: false) {
KFImage(URL(string: event.detailImageUrl!))
@@ -28,7 +28,7 @@ struct EventDetailView: View {
Spacer()
if let link = event.link, link.count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) {
Text("이벤트 참여하기")
Text(I18n.Settings.Event.participateButton)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(.white)
.padding(.vertical, 16)

View File

@@ -15,7 +15,7 @@ struct EventListView: View {
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: "이벤트")
DetailNavigationBar(title: I18n.Settings.Event.title)
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 15) {

View File

@@ -45,13 +45,13 @@ final class EventListViewModel: ObservableObject {
if let message = decoded.message {
self.errorMessage = message
} else {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.errorMessage = I18n.Common.commonError
}
self.isShowPopup = true
}
} catch {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.errorMessage = I18n.Common.commonError
self.isShowPopup = true
}
}