diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx index 7e4a0ef8b..a44782374 100644 --- a/ui/src/components/communities.tsx +++ b/ui/src/components/communities.tsx @@ -80,37 +80,37 @@ export class Communities extends Component { return (
{this.state.loading ? ( -
+

-

+

) : (
- # + { i18n.t('list_of_communities') }
@@ -153,7 +153,7 @@ export class Communities extends Component { this.handleSubscribe )} > - # + { i18n.t('subscribe') } )} @@ -177,14 +177,14 @@ export class Communities extends Component { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - # + { i18n.t('prev') } )} ); diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index 6bcd88b1d..e7fbf4500 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -125,11 +125,11 @@ export class Community extends Component { return (
{this.state.loading ? ( -
+

-

+

) : (
@@ -137,12 +137,12 @@ export class Community extends Component { {this.state.community.title} {this.state.community.removed && ( - # + { i18n.t('removed') } )} {this.state.community.nsfw && ( - # + { i18n.t('nsfw') } )} @@ -189,14 +189,14 @@ export class Community extends Component { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - # + { i18n.t('prev') } )}
); diff --git a/ui/src/components/create-community.tsx b/ui/src/components/create-community.tsx index bb2d963fe..f0e0edd38 100644 --- a/ui/src/components/create-community.tsx +++ b/ui/src/components/create-community.tsx @@ -23,7 +23,7 @@ export class CreateCommunity extends Component {

- # + { i18n.t('create_community') }

diff --git a/ui/src/components/footer.tsx b/ui/src/components/footer.tsx index 8aa05072d..b49575423 100644 --- a/ui/src/components/footer.tsx +++ b/ui/src/components/footer.tsx @@ -2,7 +2,7 @@ import { Component } from 'inferno'; import { Link } from 'inferno-router'; import { repoUrl } from '../utils'; import { version } from '../version'; -import { T } from 'inferno-i18next'; +import { i18n } from '../i18next'; export class Footer extends Component { constructor(props: any, context: any) { @@ -19,22 +19,22 @@ export class Footer extends Component { diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index a302b8345..6b3bb54b2 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -108,7 +108,7 @@ export class Inbox extends Component {
  • - # + { i18n.t('mark_all_as_read') }
@@ -133,13 +133,14 @@ export class Inbox extends Component { class="custom-select custom-select-sm w-auto mr-2" > { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - # + { i18n.t('prev') } )}
); diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx index 6d509f0ec..a288956ce 100644 --- a/ui/src/components/login.tsx +++ b/ui/src/components/login.tsx @@ -123,7 +123,6 @@ export class Login extends Component {
-
- # + { i18n.t('name') } - # + { i18n.t('title') } - # + { i18n.t('category') } - # + { i18n.t('subscribers') } - # + { i18n.t('posts') } - # + { i18n.t('comments') }
- - - + + + {this.combined()} @@ -395,14 +395,14 @@ export class Modlog extends Component { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - Prev + { i18n.t('prev') } )} ); diff --git a/ui/src/components/password_change.tsx b/ui/src/components/password_change.tsx index 3e542f7b5..e7342000a 100644 --- a/ui/src/components/password_change.tsx +++ b/ui/src/components/password_change.tsx @@ -65,7 +65,7 @@ export class PasswordChange extends Component {
- # + { i18n.t('password_change') }
{this.passwordChangeForm()}
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index c945806bd..64c122136 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -231,27 +231,27 @@ export class PostListing extends Component { )} {post.removed && ( - # + { i18n.t('removed') } )} {post.deleted && ( - # + { i18n.t('deleted') } )} {post.locked && ( - # + { i18n.t('locked') } )} {post.stickied && ( - # + { i18n.t('stickied') } )} {post.nsfw && ( - # + { i18n.t('nsfw') } )}
@@ -273,17 +273,17 @@ export class PostListing extends Component { {this.isMod && ( - # + { i18n.t('mod') } )} {this.isAdmin && ( - # + { i18n.t('admin') } )} {(post.banned_from_community || post.banned) && ( - # + { i18n.t('banned') } )} {this.props.showCommunity && ( @@ -390,14 +390,14 @@ export class PostListing extends Component { class="pointer" onClick={linkEvent(this, this.handleModRemoveShow)} > - # + { i18n.t('remove') } ) : ( - # + { i18n.t('restore') } )} @@ -414,7 +414,7 @@ export class PostListing extends Component { this.handleModBanFromCommunityShow )} > - # + { i18n.t('ban') } ) : ( { this.handleModBanFromCommunitySubmit )} > - # + { i18n.t('unban') } )} @@ -471,7 +471,7 @@ export class PostListing extends Component { this.handleTransferCommunity )} > - # + { i18n.t('yes') } { this.handleCancelShowConfirmTransferCommunity )} > - # + { i18n.t('no') } )} @@ -496,14 +496,14 @@ export class PostListing extends Component { class="pointer" onClick={linkEvent(this, this.handleModBanShow)} > - # + { i18n.t('ban_from_site') } ) : ( - # + { i18n.t('unban_from_site') } )} @@ -533,18 +533,18 @@ export class PostListing extends Component { this.handleShowConfirmTransferSite )} > - # + { i18n.t('transfer_site') } ) : ( <> - # + { i18n.t('are_you_sure') } - # + { i18n.t('yes') } { this.handleCancelShowConfirmTransferSite )} > - # + { i18n.t('no') } )} @@ -567,7 +567,7 @@ export class PostListing extends Component { className="pointer" onClick={linkEvent(this, this.handleViewSource)} > - # + { i18n.t('view_source') } )} @@ -585,18 +585,19 @@ export class PostListing extends Component { onInput={linkEvent(this, this.handleModRemoveReasonChange)} /> )} {this.state.showBanDialog && (
-
TimeModAction { i18n.t('time')}{ i18n.t('mod')}{ i18n.t('action')}