diff options
author | Dessalines <tyhou13@gmx.com> | 2019-08-08 18:58:04 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-08-08 18:58:04 -0700 |
commit | 75e014ef5a693ccfb4b6d3eacb1f5d52c9c7f010 (patch) | |
tree | d47af9e0a723edb65e3714a277686a2a88388209 /ui/src/components/post-listings.tsx | |
parent | 411e7ef16e7cde0f8a63ee741680c5090998da2e (diff) |
i18n translations first pass.
Diffstat (limited to 'ui/src/components/post-listings.tsx')
-rw-r--r-- | ui/src/components/post-listings.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/src/components/post-listings.tsx b/ui/src/components/post-listings.tsx index 93b2f606..f5682a7e 100644 --- a/ui/src/components/post-listings.tsx +++ b/ui/src/components/post-listings.tsx @@ -2,6 +2,7 @@ import { Component } from 'inferno'; import { Link } from 'inferno-router'; import { Post } from '../interfaces'; import { PostListing } from './post-listing'; +import { T } from 'inferno-i18next'; interface PostListingsProps { posts: Array<Post>; @@ -19,8 +20,10 @@ export class PostListings extends Component<PostListingsProps, any> { <div> {this.props.posts.length > 0 ? this.props.posts.map(post => <PostListing post={post} showCommunity={this.props.showCommunity} />) : - <div>No posts. {this.props.showCommunity !== undefined && <span>Subscribe to some <Link to="/communities">communities</Link>.</span>} - </div> + <> + <div><T i18nKey="no_posts">#</T></div> + {this.props.showCommunity !== undefined && <div><T i18nKey="subscribe_to_communities">#<Link to="/communities">#</Link></T></div>} + </> } </div> ) |