feat(i18n): 콘텐츠 상세/댓글 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 16:50:56 +09:00
parent a90996603b
commit c039931f34
30 changed files with 503 additions and 202 deletions

View File

@@ -51,7 +51,7 @@ struct AudioContentCommentItemView: View {
.foregroundColor(Color.gray90)
if commentItem.isSecret {
Text("비밀댓글")
Text(I18n.ContentDetail.Comment.secretComment)
.appFont(size: 11, weight: .medium)
.foregroundColor(Color.grayee)
.padding(.horizontal, 4)
@@ -104,7 +104,7 @@ struct AudioContentCommentItemView: View {
HStack(spacing: 0) {
if isModeModify {
HStack(spacing: 0) {
TextField("댓글을 입력해 보세요.", text: $comment)
TextField(I18n.ContentDetail.Comment.inputPlaceholder, text: $comment)
.autocapitalization(.none)
.disableAutocorrection(true)
.appFont(size: 13.3, weight: .medium)
@@ -150,8 +150,12 @@ struct AudioContentCommentItemView: View {
audioContentId: audioContentId,
parentComment: commentItem
)
) {
Text(commentItem.replyCount > 0 ? "답글 \(commentItem.replyCount)" : "답글 쓰기")
) {
Text(
commentItem.replyCount > 0 ?
I18n.ContentDetail.Comment.replyCount(commentItem.replyCount) :
I18n.ContentDetail.Comment.writeReply
)
.appFont(size: 13.3, weight: .medium)
.foregroundColor(Color.button)
}
@@ -172,7 +176,7 @@ struct AudioContentCommentItemView: View {
if isShowPopupMenu {
VStack(spacing: 10) {
if commentItem.writerId == UserDefaults.int(forKey: .userId) {
Text("수정")
Text(I18n.ContentDetail.Comment.edit)
.appFont(size: 14, weight: .medium)
.foregroundColor(Color.gray77)
.onTapGesture {
@@ -184,7 +188,7 @@ struct AudioContentCommentItemView: View {
if contentCreatorId == UserDefaults.int(forKey: .userId) ||
commentItem.writerId == UserDefaults.int(forKey: .userId)
{
Text("삭제")
Text(I18n.Common.delete)
.appFont(size: 14, weight: .medium)
.foregroundColor(Color.gray77)
.onTapGesture {