From f6cf8f0a38530dfef44c7a28cdf858a05103e456 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 19 Jan 2020 14:50:35 +0100 Subject: [PATCH] adding translations to the sidebar --- ui/src/components/sidebar.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx index 089dd5581..809ec91ed 100644 --- a/ui/src/components/sidebar.tsx +++ b/ui/src/components/sidebar.tsx @@ -72,7 +72,7 @@ export class Sidebar extends Component { {community.title} {community.removed && ( - # + { i18n.t('removed') } )} {community.deleted && ( @@ -92,7 +92,7 @@ export class Sidebar extends Component { class="pointer" onClick={linkEvent(this, this.handleEditClick)} > - # + { i18n.t('edit') } {this.amCreator && ( @@ -116,14 +116,14 @@ export class Sidebar extends Component { class="pointer" onClick={linkEvent(this, this.handleModRemoveShow)} > - # + { i18n.t('remove') } ) : ( - # + { i18n.t('restore') } )} @@ -132,11 +132,12 @@ export class Sidebar extends Component { {this.state.showRemoveDialog && (
-
*/}
@@ -218,7 +219,7 @@ export class Sidebar extends Component { 'no-click'}`} to={`/create_post?community=${community.name}`} > - # + { i18n.t('create_a_post') }
{community.subscribed ? ( @@ -226,14 +227,14 @@ export class Sidebar extends Component { class="btn btn-sm btn-secondary btn-block" onClick={linkEvent(community.id, this.handleUnsubscribe)} > - # + { i18n.t('unsubscribe') } ) : ( )}