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

@@ -24,13 +24,13 @@ struct UserProfileContentView: View {
var body: some View {
VStack(spacing: 21) {
HStack(spacing: 0) {
Text(userId == UserDefaults.int(forKey: .userId) ? "내 콘텐츠" : "콘텐츠")
Text(userId == UserDefaults.int(forKey: .userId) ? I18n.Explorer.myContent : I18n.Explorer.content)
.appFont(size: 26, weight: .bold)
.foregroundColor(Color.white)
Spacer()
Text("전체보기")
Text(I18n.Common.viewAll)
.appFont(size: 14, weight: .light)
.foregroundColor(Color(hex: "78909C"))
.onTapGesture {
@@ -39,7 +39,7 @@ struct UserProfileContentView: View {
}
if userId == UserDefaults.int(forKey: .userId) {
Text("새로운 콘텐츠 등록하기")
Text(I18n.Explorer.createNewContent)
.appFont(size: 16, weight: .bold)
.foregroundColor(Color.grayee)
.padding(.vertical, 17)
@@ -73,7 +73,7 @@ struct UserProfileContentView: View {
VStack(spacing: 8) {
// ( % , , )
HStack {
Text(ownedContentCount > 0 ? "\(Int(round(Double(ownedContentCount) / Double(totalContentCount) * 100)))% 보유중" : "소장 중인 작품이 없어요!")
Text(ownedContentCount > 0 ? I18n.Explorer.ownedPercentage(Int(round(Double(ownedContentCount) / Double(totalContentCount) * 100))) : I18n.Explorer.noOwnedContent)
.appFont(size: 18, weight: .bold)
.foregroundColor(.white)
@@ -88,7 +88,7 @@ struct UserProfileContentView: View {
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
Text("\(totalContentCount)")
Text(I18n.Explorer.totalContentCount(totalContentCount))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}