forked from nutomic/lemmy
Fix i18n issue with no communities.
This commit is contained in:
parent
35efca4152
commit
b0399da27b
1 changed files with 4 additions and 5 deletions
9
ui/src/components/post-listings.tsx
vendored
9
ui/src/components/post-listings.tsx
vendored
|
@ -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>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue