From a447e432db8a185f1df998f91d35891eb185af4e Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 21 May 2023 18:13:25 +0000 Subject: [PATCH] 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 --- src/shared/components/comment/comment-node.tsx | 9 ++++++++- src/shared/components/post/post-listing.tsx | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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()) && ( <> -- 2.44.1