diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-08-14 14:34:47 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-14 15:03:38 +0200 |
commit | da188b9f9e68ece3caa27df7401b4e34aadeb1f5 (patch) | |
tree | 202b1355e8e378fd40000e29e1fc6fb65bc8f930 /client/src | |
parent | 230c3ba24b49525ee140eadbe0384f5608d0cbc3 (diff) | |
download | PeerTube-da188b9f9e68ece3caa27df7401b4e34aadeb1f5.tar.gz PeerTube-da188b9f9e68ece3caa27df7401b4e34aadeb1f5.tar.zst PeerTube-da188b9f9e68ece3caa27df7401b4e34aadeb1f5.zip |
Migrate i18n to localize
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts index 3fa5fd623..41edb35ab 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts | |||
@@ -7,7 +7,6 @@ import { Video } from '@app/shared/shared-main' | |||
7 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' | 7 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' |
8 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 8 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
9 | import { VideoCommentCreate } from '@shared/models' | 9 | import { VideoCommentCreate } from '@shared/models' |
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
11 | 10 | ||
12 | @Component({ | 11 | @Component({ |
13 | selector: 'my-video-comment-add', | 12 | selector: 'my-video-comment-add', |
@@ -39,7 +38,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
39 | private videoCommentService: VideoCommentService, | 38 | private videoCommentService: VideoCommentService, |
40 | private modalService: NgbModal, | 39 | private modalService: NgbModal, |
41 | private router: Router, | 40 | private router: Router, |
42 | private i18n: I18n | ||
43 | ) { | 41 | ) { |
44 | super() | 42 | super() |
45 | } | 43 | } |
@@ -57,9 +55,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
57 | 55 | ||
58 | if (this.user) { | 56 | if (this.user) { |
59 | if (!this.parentComment) { | 57 | if (!this.parentComment) { |
60 | this.addingCommentButtonValue = this.i18n('Comment') | 58 | this.addingCommentButtonValue = $localize`Comment` |
61 | } else { | 59 | } else { |
62 | this.addingCommentButtonValue = this.i18n('Reply') | 60 | this.addingCommentButtonValue = $localize`Reply` |
63 | } | 61 | } |
64 | 62 | ||
65 | this.initTextValue() | 63 | this.initTextValue() |