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:/lemmy.ml/u/Liwott/%7B%60%24%7BarchiveTodayUrl%7D/%7Bpost.url%7D?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')} - -
+ + ## + )} )}