diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-02 14:37:19 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-02 14:37:19 -0500 |
commit | caba049da12017f22a8ffa8d6b8e7f0a2cc20e6a (patch) | |
tree | 5c53177858098e4d4414896bba53f90f0ceddd78 /ui/src/components/post.tsx | |
parent | 96a7e99e57f8c79eead599e6de5d94016f7021e6 (diff) | |
parent | 6124133e8517165a97aa87af5485857a000951a2 (diff) |
Merge branch 'dev' into websocket_scopes
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r-- | ui/src/components/post.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index b53d7d4f..b0faf850 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -37,7 +37,6 @@ import { CommentForm } from './comment-form'; import { CommentNodes } from './comment-nodes'; import autosize from 'autosize'; import { i18n } from '../i18next'; -import { T } from 'inferno-i18next'; interface PostState { post: PostI; @@ -174,7 +173,7 @@ export class Post extends Component<any, PostState> { {this.state.crossPosts.length > 0 && ( <> <div class="my-1 text-muted small font-weight-bold"> - <T i18nKey="cross_posts">#</T> + {i18n.t('cross_posts')} </div> <PostListings showCommunity posts={this.state.crossPosts} /> </> @@ -256,9 +255,7 @@ export class Post extends Component<any, PostState> { return ( <div class="d-none d-md-block new-comments mb-3 card border-secondary"> <div class="card-body small"> - <h6> - <T i18nKey="recent_comments">#</T> - </h6> + <h6>{i18n.t('recent_comments')}</h6> {this.state.comments.map(comment => ( <CommentNodes nodes={[{ comment: comment }]} |