feat(i18n): 탐색 프로필 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 14:40:37 +09:00
parent bceec46ebc
commit 038d66e363
39 changed files with 599 additions and 247 deletions

View File

@@ -16,14 +16,14 @@ struct UserProfileDonationAllView: View {
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: String(localized: "후원랭킹 전체보기"))
DetailNavigationBar(title: I18n.Explorer.donationRankingAllTitle)
if userId == UserDefaults.int(forKey: .userId) {
VStack(spacing: 10.7) {
HStack(spacing: 10) {
Spacer()
Text("채널에 후원랭킹 활성화")
Text(I18n.Explorer.donationRankActivation)
.appFont(size: 16, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
@@ -38,7 +38,7 @@ struct UserProfileDonationAllView: View {
HStack(spacing: 0) {
Spacer()
Text("※ 비활성화하면 채널 내 후원랭킹이 표시되지 않으며,\n라이브 중에도 후원랭킹에 따른 뱃지가 반영되지 않습니다.")
Text(I18n.Explorer.donationRankActivationNotice)
.appFont(size: 12, weight: .medium)
.foregroundColor(Color(hex: "555555"))
.multilineTextAlignment(.trailing)
@@ -79,7 +79,7 @@ struct UserProfileDonationAllView: View {
VStack(spacing: 13.3) {
HStack(spacing: 0) {
Text("오늘")
Text(I18n.Explorer.today)
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
@@ -89,13 +89,13 @@ struct UserProfileDonationAllView: View {
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
Text("")
Text(I18n.Explorer.canUnitWithSpace)
.appFont(size: 12, weight: .light)
.foregroundColor(Color(hex: "eeeeee"))
}
HStack(spacing: 0) {
Text("지난주")
Text(I18n.Explorer.lastWeek)
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
@@ -105,13 +105,13 @@ struct UserProfileDonationAllView: View {
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
Text("")
Text(I18n.Explorer.canUnitWithSpace)
.appFont(size: 12, weight: .light)
.foregroundColor(Color(hex: "eeeeee"))
}
HStack(spacing: 0) {
Text("이번 달 어제까지")
Text(I18n.Explorer.thisMonthUntilYesterday)
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
@@ -121,7 +121,7 @@ struct UserProfileDonationAllView: View {
.appFont(size: 12, weight: .bold)
.foregroundColor(Color(hex: "eeeeee"))
Text("")
Text(I18n.Explorer.canUnitWithSpace)
.appFont(size: 12, weight: .light)
.foregroundColor(Color(hex: "eeeeee"))
}
@@ -153,7 +153,7 @@ struct UserProfileDonationAllView: View {
}
HStack(alignment: .center, spacing: 0) {
Text("전체")
Text(I18n.MemberChannel.totalLabel)
.appFont(size: 14.7, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
@@ -162,7 +162,7 @@ struct UserProfileDonationAllView: View {
.foregroundColor(Color(hex: "80d8ff"))
.padding(.leading, 6.7)
Text("")
Text(I18n.MemberChannel.countUnit)
.appFont(size: 12, weight: .medium)
.foregroundColor(Color(hex: "777777"))
@@ -253,7 +253,7 @@ struct UserProfileDonationAllItemView: View {
Spacer()
if let donationCan = item.donationCan, donationCan > 0, withDonationCan {
Text("\(donationCan)")
Text(I18n.Explorer.canWithSpace(donationCan))
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color(hex: "eeeeee"))
}