From: SleeplessOne1917 Date: Sun, 21 May 2023 18:13:25 +0000 (+0000) Subject: Show language on posts and comments (#1026) X-Git-Url: http://these/git/%7B%60%24%7BrepoUrl%7D/blob/master/docs/%7BrepoUrl%7D?a=commitdiff_plain;h=a447e432db8a185f1df998f91d35891eb185af4e;p=lemmy-ui.git Show language on posts and comments (#1026) * Show language on posts and comments * Revert "Show language on posts and comments" This reverts commit 54267903fc6941762030ec20daa048d47662d50d. * Change language indicator look --- diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index d68c5b3..16e0a73 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -282,8 +282,15 @@ export class CommentNode extends Component { )} {this.linkBtn(true)} + + { + this.props.allLanguages.find( + lang => lang.id === cv.comment.language_id + )?.name + } + {/* This is an expanding spacer for mobile */} -
+
{showScores() && ( <> { )} + + { + this.props.allLanguages.find( + lang => lang.id === post_view.post.language_id + )?.name + } +
  • •
  • {url && !(hostname(url) === getExternalHost()) && ( <>