diff --git a/src/assets/Empty.jsx b/src/assets/Empty.jsx index f9432b8fe..c6e244b9e 100644 --- a/src/assets/Empty.jsx +++ b/src/assets/Empty.jsx @@ -1,5 +1,5 @@ const Empty = () => ( - +
+ + {intl.formatMessage(messages.discussions, { + count: threadCounts?.discussion || 0, + })} + {threadCounts?.discussion || 0}
@@ -59,6 +64,11 @@ const TopicStats = ({ >
+ + {intl.formatMessage(messages.questions, { + count: threadCounts?.question || 0, + })} + {threadCounts?.question || 0}
@@ -85,6 +95,10 @@ const TopicStats = ({ >
+ + {intl.formatMessage(inactiveFlags ? messages.previouslyReported : messages.reported)} + + {activeFlags}{Boolean(inactiveFlags) && `/${inactiveFlags}`}
diff --git a/src/discussions/common/HoverCard.jsx b/src/discussions/common/HoverCard.jsx index a47777676..e01c2ce2b 100644 --- a/src/discussions/common/HoverCard.jsx +++ b/src/discussions/common/HoverCard.jsx @@ -14,6 +14,7 @@ import { useIntl } from '@edx/frontend-platform/i18n'; import { ThreadType } from '../../data/constants'; import { useHasLikePermission, useUserPostingEnabled } from '../data/hooks'; import PostCommentsContext from '../post-comments/postCommentsContext'; +import messages from '../posts/post/messages'; import ActionsDropdown from './ActionsDropdown'; import DiscussionContext from './context'; @@ -67,17 +68,20 @@ const HoverCard = ({ )} trigger={['hover', 'focus']} > - { - const actionFunction = actionHandlers[endorseIcons.action]; - actionFunction(); - }} - className={['endorse', 'unendorse'].includes(endorseIcons.id) ? 'text-dark-500' : 'text-success-500'} - size="sm" - alt="Endorse" - /> +
+ { + const actionFunction = actionHandlers[endorseIcons.action]; + actionFunction(); + }} + className={['endorse', 'unendorse'].includes(endorseIcons.id) ? 'text-dark-500' : 'text-success-500'} + size="sm" + alt="Endorse" + /> + {intl.formatMessage(endorseIcons.label)} +
)} @@ -94,6 +98,7 @@ const HoverCard = ({ onLike(); }} /> + {intl.formatMessage(messages.like)} {following !== undefined && (
@@ -108,6 +113,7 @@ const HoverCard = ({ onFollow(); }} /> + {intl.formatMessage(messages.follow)}
)}
diff --git a/src/discussions/learners/learner/LearnerFooter.jsx b/src/discussions/learners/learner/LearnerFooter.jsx index ce4adc9e0..653f973b4 100644 --- a/src/discussions/learners/learner/LearnerFooter.jsx +++ b/src/discussions/learners/learner/LearnerFooter.jsx @@ -35,6 +35,7 @@ const LearnerFooter = ({ >
+ {intl.formatMessage(messages.allActivity)} {threads + responses + replies}
@@ -51,6 +52,7 @@ const LearnerFooter = ({ >
+ {intl.formatMessage(messages.posts)} {threads}
diff --git a/src/discussions/posts/post-editor/PostEditor.jsx b/src/discussions/posts/post-editor/PostEditor.jsx index a2f57959c..a58569cd9 100644 --- a/src/discussions/posts/post-editor/PostEditor.jsx +++ b/src/discussions/posts/post-editor/PostEditor.jsx @@ -259,13 +259,13 @@ const PostEditor = ({ value="discussion" selected={values.postType === 'discussion'} type={intl.formatMessage(messages.discussionType)} - icon={} + icon={} /> } + icon={} />
diff --git a/src/discussions/posts/post-editor/PostTypeCard.jsx b/src/discussions/posts/post-editor/PostTypeCard.jsx index b735e7b6f..b7afd6328 100644 --- a/src/discussions/posts/post-editor/PostTypeCard.jsx +++ b/src/discussions/posts/post-editor/PostTypeCard.jsx @@ -15,7 +15,7 @@ const PostTypeCard = ({ const { enableInContextSidebar } = useContext(DiscussionContext); // Need to use regular label since Form.Label doesn't support overriding htmlFor return ( -