]> Untitled Git - lemmy.git/commitdiff
Fix i18n issue with no communities.
authorDessalines <tyhou13@gmx.com>
Wed, 5 Feb 2020 17:56:01 +0000 (12:56 -0500)
committerDessalines <tyhou13@gmx.com>
Wed, 5 Feb 2020 17:56:01 +0000 (12:56 -0500)
ui/src/components/post-listings.tsx

index 65db3727cce040ab07f2215d1f52331277de11b5..005c4fe03ce669ca7c32394efcdd7b768a8c741e 100644 (file)
@@ -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>
             )}
           </>
         )}