커뮤니티 게시글 상대 시간 표기 다국어 지원

This commit is contained in:
Yu Sung
2025-12-19 14:20:47 +09:00
parent f51fe327e9
commit bea50b0085
5 changed files with 147 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ struct CreatorCommunityItemView: View {
.font(.custom(Font.preBold.rawValue, size: 18))
.foregroundColor(Color.white)
Text(item.date)
Text(item.relativeTimeText())
.font(.custom(Font.preRegular.rawValue, size: 14))
.foregroundColor(Color(hex: "78909C"))
}
@@ -100,6 +100,7 @@ struct CreatorCommunityItemView_Previews: PreviewProvider {
content: "안녕하세요",
price: 10,
date: "3일전",
dateUtc: "2025-08-10T15:00:00",
isCommentAvailable: false,
isAdult: false,
isLike: false,