summaryrefslogtreecommitdiffstats
path: root/ui/src/components/comment-form.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-02 14:22:35 -0500
committerDessalines <tyhou13@gmx.com>2020-02-02 14:22:35 -0500
commit6124133e8517165a97aa87af5485857a000951a2 (patch)
treefe0d919f0e54235f3bb051381e7e3bd089843226 /ui/src/components/comment-form.tsx
parentccda4d8453f796d3929dbda21c0b2e19099d8b74 (diff)
Doing comment-node, comment-form and private-message.
Diffstat (limited to 'ui/src/components/comment-form.tsx')
-rw-r--r--ui/src/components/comment-form.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/src/components/comment-form.tsx b/ui/src/components/comment-form.tsx
index 7eb30f50..eaa054d8 100644
--- a/ui/src/components/comment-form.tsx
+++ b/ui/src/components/comment-form.tsx
@@ -15,7 +15,6 @@ import { WebSocketService, UserService } from '../services';
import autosize from 'autosize';
import Tribute from 'tributejs/src/Tribute.js';
import { i18n } from '../i18next';
-import { T } from 'inferno-i18next';
interface CommentFormProps {
postId?: number;
@@ -127,7 +126,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
.previewMode && 'active'}`}
onClick={linkEvent(this, this.handlePreviewToggle)}
>
- <T i18nKey="preview">#</T>
+ {i18n.t('preview')}
</button>
)}
{this.props.node && (
@@ -136,7 +135,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
class="btn btn-sm btn-secondary mr-2"
onClick={linkEvent(this, this.handleReplyCancel)}
>
- <T i18nKey="cancel">#</T>
+ {i18n.t('cancel')}
</button>
)}
<a
@@ -144,14 +143,14 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
target="_blank"
class="d-inline-block float-right text-muted small font-weight-bold"
>
- <T i18nKey="formatting_help">#</T>
+ {i18n.t('formatting_help')}
</a>
<form class="d-inline-block mr-2 float-right text-muted small font-weight-bold">
<label
htmlFor={`file-upload-${this.id}`}
className={`${UserService.Instance.user && 'pointer'}`}
>
- <T i18nKey="upload_image">#</T>
+ {i18n.t('upload_image')}
</label>
<input
id={`file-upload-${this.id}`}