diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-08 18:58:04 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-08 18:58:04 -0700 |
commit | cf4391fed3167e0195b41e0cae5cb7402565d19b (patch) | |
tree | 4e2fdbe8ab2d2769c85646f3d52c400289a84948 /ui/src/components/post-listings.tsx | |
parent | 2d0b676a65aaaee5c0ff6e090f046303ceaa4909 (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> ) |