import { Post } from '../interfaces';
import { PostListing } from './post-listing';
import { i18n } from '../i18next';
+import { T } from 'inferno-i18next';
interface PostListingsProps {
posts: Array<Post>;
<>
<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>
)}
</>
)}