feat(comments): add sorting and liking functionality
Support sorting by oldest, latest, most-liked, and most-replied. Implement like/unlike actions for Life and Entity Discussion comments.
This commit is contained in:
@@ -872,6 +872,8 @@ export const systemWordingMessages = {
|
||||
sortLatest: 'Latest',
|
||||
sortOldest: 'Oldest',
|
||||
sortTopRated: 'Top rated',
|
||||
sortMostLiked: 'Most liked',
|
||||
sortMostReplied: 'Most replied',
|
||||
categoryPlaceholder: 'Select category',
|
||||
searchCategories: 'Search categories',
|
||||
search: 'Search Life',
|
||||
@@ -924,6 +926,10 @@ export const systemWordingMessages = {
|
||||
deleteCommentConfirm: 'Delete this comment?',
|
||||
commentDeleted: 'Comment deleted',
|
||||
restoreComment: 'Undo',
|
||||
likeComment: 'Like comment',
|
||||
unlikeComment: 'Unlike comment',
|
||||
commentLikeCount: '{count} likes',
|
||||
commentLikeFailed: 'Like failed',
|
||||
commentRequired: 'Please enter a comment.',
|
||||
commentFailed: 'Comment failed',
|
||||
replyFailed: 'Reply failed',
|
||||
@@ -1174,6 +1180,15 @@ export const systemWordingMessages = {
|
||||
moderationRetryFailed: 'Review retry failed',
|
||||
loading: 'Loading discussion',
|
||||
loadMore: 'Load more comments',
|
||||
sort: 'Sort',
|
||||
sortOldest: 'Oldest',
|
||||
sortLatest: 'Latest',
|
||||
sortMostLiked: 'Most liked',
|
||||
sortMostReplied: 'Most replied',
|
||||
likeComment: 'Like comment',
|
||||
unlikeComment: 'Unlike comment',
|
||||
commentLikeCount: '{count} likes',
|
||||
commentLikeFailed: 'Like failed',
|
||||
empty: 'No discussion yet',
|
||||
emptyHint: 'Start a new discussion now.',
|
||||
loginPrompt: 'Log in with a verified email to comment.',
|
||||
@@ -2166,6 +2181,8 @@ export const systemWordingMessages = {
|
||||
sortLatest: '最新',
|
||||
sortOldest: '最早',
|
||||
sortTopRated: '评分最高',
|
||||
sortMostLiked: '点赞最多',
|
||||
sortMostReplied: '回复最多',
|
||||
categoryPlaceholder: '选择 Category',
|
||||
searchCategories: '搜索 Category',
|
||||
search: '搜索动态',
|
||||
@@ -2218,6 +2235,10 @@ export const systemWordingMessages = {
|
||||
deleteCommentConfirm: '确认删除这条评论?',
|
||||
commentDeleted: '评论已删除',
|
||||
restoreComment: '撤销',
|
||||
likeComment: '点赞评论',
|
||||
unlikeComment: '取消点赞评论',
|
||||
commentLikeCount: '{count} 个赞',
|
||||
commentLikeFailed: '点赞失败',
|
||||
commentRequired: '请输入评论内容。',
|
||||
commentFailed: '评论失败',
|
||||
replyFailed: '回复失败',
|
||||
@@ -2468,6 +2489,15 @@ export const systemWordingMessages = {
|
||||
moderationRetryFailed: '重新审核失败',
|
||||
loading: '正在加载讨论',
|
||||
loadMore: '加载更多评论',
|
||||
sort: '排序',
|
||||
sortOldest: '最早',
|
||||
sortLatest: '最新',
|
||||
sortMostLiked: '点赞最多',
|
||||
sortMostReplied: '回复最多',
|
||||
likeComment: '点赞评论',
|
||||
unlikeComment: '取消点赞评论',
|
||||
commentLikeCount: '{count} 个赞',
|
||||
commentLikeFailed: '点赞失败',
|
||||
empty: '暂无讨论',
|
||||
emptyHint: '现在发起新的讨论。',
|
||||
loginPrompt: '使用已验证邮箱登录后即可评论。',
|
||||
|
||||
Reference in New Issue
Block a user