mirror of https://github.com/LemmyNet/lemmy.git
Fix i18n issue with no communities.
parent
420fb5a847
commit
02511eefb9
|
@ -3,6 +3,7 @@ import { Link } from 'inferno-router';
|
||||||
import { Post } from '../interfaces';
|
import { Post } from '../interfaces';
|
||||||
import { PostListing } from './post-listing';
|
import { PostListing } from './post-listing';
|
||||||
import { i18n } from '../i18next';
|
import { i18n } from '../i18next';
|
||||||
|
import { T } from 'inferno-i18next';
|
||||||
|
|
||||||
interface PostListingsProps {
|
interface PostListingsProps {
|
||||||
posts: Array<Post>;
|
posts: Array<Post>;
|
||||||
|
@ -36,11 +37,9 @@ export class PostListings extends Component<PostListingsProps, any> {
|
||||||
<>
|
<>
|
||||||
<div>{i18n.t('no_posts')}</div>
|
<div>{i18n.t('no_posts')}</div>
|
||||||
{this.props.showCommunity !== undefined && (
|
{this.props.showCommunity !== undefined && (
|
||||||
<div>
|
<T i18nKey="subscribe_to_communities">
|
||||||
<Link to="/communities">
|
#<Link to="/communities">#</Link>
|
||||||
{i18n.t('subscribe_to_communities')}
|
</T>
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue