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

This commit is contained in:
Yu Sung
2026-03-31 23:04:33 +09:00
parent 25fccbaa07
commit b53614836f
21 changed files with 483 additions and 176 deletions

View File

@@ -17,7 +17,7 @@ struct CanStatusView: View {
BaseView(isLoading: $viewModel.isLoading) {
GeometryReader { proxy in
VStack(spacing: 0) {
DetailNavigationBar(title: String(localized: "캔내역")) {
DetailNavigationBar(title: I18n.MyPage.Can.statusTitle) {
AppState.shared.setAppStep(step: .main)
}
@@ -35,7 +35,7 @@ struct CanStatusView: View {
HStack(spacing: 26.7) {
VStack(spacing: 10) {
Text("결제 캔")
Text(I18n.MyPage.Can.paidCan)
.appFont(size: 12, weight: .light)
.foregroundColor(Color(hex: "777777"))
@@ -44,7 +44,7 @@ struct CanStatusView: View {
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
Text(" ")
Text(" \(I18n.MyPage.Can.localizedUnit)")
.appFont(size: 10.7, weight: .medium)
.foregroundColor(Color(hex: "bbbbbb"))
}
@@ -56,7 +56,7 @@ struct CanStatusView: View {
.foregroundColor(Color(hex: "909090").opacity(0.5))
VStack(spacing: 10) {
Text("리워드 캔")
Text(I18n.MyPage.Can.rewardCan)
.appFont(size: 12, weight: .light)
.foregroundColor(Color(hex: "777777"))
@@ -65,7 +65,7 @@ struct CanStatusView: View {
.appFont(size: 16.7, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
Text(" ")
Text(" \(I18n.MyPage.Can.localizedUnit)")
.appFont(size: 10.7, weight: .medium)
.foregroundColor(Color(hex: "bbbbbb"))
}
@@ -82,7 +82,7 @@ struct CanStatusView: View {
HStack(spacing: 0) {
VStack(spacing: 0) {
Spacer()
Text("충전내역")
Text(I18n.MyPage.Can.chargeHistory)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(
Color(hex: viewModel.currentTab == .charge ? "eeeeee" : "777777")
@@ -104,7 +104,7 @@ struct CanStatusView: View {
VStack(spacing: 0) {
Spacer()
Text("사용내역")
Text(I18n.MyPage.Can.useHistory)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(
Color(hex: viewModel.currentTab == .use ? "eeeeee" : "777777")
@@ -142,7 +142,7 @@ struct CanStatusView: View {
.resizable()
.frame(width: 26.7, height: 26.7)
Text("충전하기")
Text(I18n.MyPage.Can.chargeAction)
.appFont(size: 18.3, weight: .bold)
.foregroundColor(Color(hex: "1313bc"))
}