feat(i18n): 마이페이지 그룹 3~5 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-03-31 23:32:05 +09:00
parent b53614836f
commit 7285c5367d
22 changed files with 423 additions and 111 deletions

View File

@@ -21,7 +21,7 @@ struct FaqView: View {
VStack(spacing: 0) {
HStack(alignment: .top, spacing: 6.7) {
Text("Q")
Text(I18n.MyPage.ServiceCenter.questionPrefix)
.appFont(size: 13.3, weight: .bold)
.foregroundColor(Color.button)
@@ -41,7 +41,7 @@ struct FaqView: View {
if openIndex == index {
HStack(alignment: .top, spacing: 6.7) {
Text("A")
Text(I18n.MyPage.ServiceCenter.answerPrefix)
.appFont(size: 13.3, weight: .bold)
.foregroundColor(Color.button)
.padding(.top, 13.3)

View File

@@ -14,7 +14,7 @@ struct ServiceCenterButtonView: View {
.resizable()
.frame(width: 26.7, height: 26.7)
Text("보이스온 고객센터")
Text(I18n.MyPage.ServiceCenter.buttonTitle)
.appFont(size: 15.3, weight: .bold)
.foregroundColor(.white)

View File

@@ -14,7 +14,7 @@ struct ServiceCenterView: View {
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: "고객센터")
DetailNavigationBar(title: I18n.MyPage.Category.customerCenter)
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 0) {
@@ -23,7 +23,7 @@ struct ServiceCenterView: View {
.scaledToFill()
.frame(width: 106.7, height: 106.7, alignment: .top)
Text("고객센터")
Text(I18n.MyPage.Category.customerCenter)
.appFont(size: 20, weight: .bold)
.foregroundColor(.grayee)
.padding(.top, 20)
@@ -34,7 +34,7 @@ struct ServiceCenterView: View {
.scaledToFill()
.frame(width: 21, height: 18.8, alignment: .top)
Text("TALK 문의")
Text(I18n.MyPage.ServiceCenter.talkInquiry)
.appFont(size: 13.3, weight: .bold)
.foregroundColor(.black)
}
@@ -53,7 +53,7 @@ struct ServiceCenterView: View {
.foregroundColor(.gray23)
.padding(.vertical, 20)
Text("자주 묻는 질문")
Text(I18n.MyPage.ServiceCenter.faqTitle)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(.grayee)
.frame(maxWidth: .infinity, alignment: .leading)

View File

@@ -54,13 +54,13 @@ final class ServiceCenterViewModel: 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
}
}
@@ -93,13 +93,13 @@ final class ServiceCenterViewModel: 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
}
}