feat(i18n): 시리즈/재생목록 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 17:33:13 +09:00
parent c039931f34
commit 1ec56a1f15
27 changed files with 253 additions and 160 deletions

View File

@@ -125,13 +125,13 @@ struct ContentPlaylistDetailView: View {
}
HStack(spacing: 0) {
Text("만든 날짜 \(response.createdDate)")
Text(I18n.Content.Playlist.createdDate(response.createdDate))
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.gray90)
Spacer()
Text("\(response.contentCount)")
Text(I18n.Content.Playlist.contentCount(response.contentCount))
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayee)
}
@@ -141,7 +141,7 @@ struct ContentPlaylistDetailView: View {
HStack(spacing: 5.3) {
Image("ic_playlist_play")
Text("Play")
Text(I18n.Content.Playlist.play)
.appFont(size: 14.7, weight: .bold)
.foregroundColor(Color.white)
}
@@ -159,7 +159,7 @@ struct ContentPlaylistDetailView: View {
HStack(spacing: 5.3) {
Image("ic_playlist_shuffle")
Text("Shuffle")
Text(I18n.Content.Playlist.shuffle)
.appFont(size: 14.7, weight: .bold)
.foregroundColor(Color.white)
}
@@ -255,7 +255,7 @@ struct ContentPlaylistDetailView: View {
Spacer()
HStack(spacing: 13.3) {
Text("삭제")
Text(I18n.Common.delete)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.grayee)

View File

@@ -50,13 +50,13 @@ final class ContentPlaylistDetailViewModel: 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
}
@@ -84,7 +84,7 @@ final class ContentPlaylistDetailViewModel: ObservableObject {
let decoded = try jsonDecoder.decode(ApiResponseWithoutData.self, from: responseData)
if decoded.success {
self.errorMessage = "삭제되었습니다."
self.errorMessage = I18n.Playlist.deleteCompleted
self.isShowPopup = true
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
@@ -94,13 +94,13 @@ final class ContentPlaylistDetailViewModel: 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
}