Add comment sorting strings

This commit is contained in:
infiinte-persistence 2020-10-07 19:16:13 +08:00 committed by Sean Yesmunt
parent bb56d92147
commit 54cdf2a7e6
2 changed files with 5 additions and 3 deletions

View file

@ -1303,6 +1303,8 @@
"1 comment": "1 comment",
"Upvote": "Upvote",
"Downvote": "Downvote",
"Best": "Best",
"Controversial": "Controversial",
"Hide %number% Replies": "Hide %number% Replies",
"Show %number% Replies": "Show %number% Replies",
"Unable to create comment, please try again later.": "Unable to create comment, please try again later.",

View file

@ -160,7 +160,7 @@ function CommentList(props: Props) {
<span className="comment__sort">
<Button
button="alt"
label={'Best'}
label={__('Best')}
icon={ICONS.FIRE}
onClick={() => setSort(SORT_COMMENTS_BEST)}
className={classnames(`button-toggle`, {
@ -169,7 +169,7 @@ function CommentList(props: Props) {
/>
<Button
button="alt"
label={'Controversial'}
label={__('Controversial')}
icon={ICONS.CONTROVERSIAL}
onClick={() => setSort(SORT_COMMENTS_CONTROVERSIAL)}
className={classnames(`button-toggle`, {
@ -178,7 +178,7 @@ function CommentList(props: Props) {
/>
<Button
button="alt"
label={'New'}
label={__('New')}
icon={ICONS.NEW}
onClick={() => setSort(SORT_COMMENTS_NEW)}
className={classnames(`button-toggle`, {