From: Dessalines Date: Wed, 5 Feb 2020 17:56:01 +0000 (-0500) Subject: Fix i18n issue with no communities. X-Git-Url: http://these/git/%22https:/image.com/readmes/%7B%60%24%7BarchiveUrl%7D/%7B%24%7B%60data:application/manifest%20json;base64%2C%24%7Bawait?a=commitdiff_plain;h=02511eefb9cfb617926a95cc8901013bf2afcb71;p=lemmy.git Fix i18n issue with no communities. --- 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; @@ -36,11 +37,9 @@ export class PostListings extends Component { <>
{i18n.t('no_posts')}
{this.props.showCommunity !== undefined && ( -
- - {i18n.t('subscribe_to_communities')} - -
+ + ## + )} )}