diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-05 12:56:01 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-05 12:56:01 -0500 |
commit | 02511eefb9cfb617926a95cc8901013bf2afcb71 (patch) | |
tree | 167bc437a0b3121a5a516a3ec77a40a37fe49336 /ui/src/components/post-listings.tsx | |
parent | 420fb5a847cc549a46596407c32c9ad8d581b321 (diff) |
Fix i18n issue with no communities.
Diffstat (limited to 'ui/src/components/post-listings.tsx')
-rw-r--r-- | ui/src/components/post-listings.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/src/components/post-listings.tsx b/ui/src/components/post-listings.tsx index 65db3727..005c4fe0 100644 --- a/ui/src/components/post-listings.tsx +++ b/ui/src/components/post-listings.tsx @@ -3,6 +3,7 @@ import { Link } from 'inferno-router'; import { Post } from '../interfaces'; import { PostListing } from './post-listing'; import { i18n } from '../i18next'; +import { T } from 'inferno-i18next'; interface PostListingsProps { posts: Array<Post>; @@ -36,11 +37,9 @@ export class PostListings extends Component<PostListingsProps, any> { <> <div>{i18n.t('no_posts')}</div> {this.props.showCommunity !== undefined && ( - <div> - <Link to="/communities"> - {i18n.t('subscribe_to_communities')} - </Link> - </div> + <T i18nKey="subscribe_to_communities"> + #<Link to="/communities">#</Link> + </T> )} </> )} |