From da188b9f9e68ece3caa27df7401b4e34aadeb1f5 Mon Sep 17 00:00:00 2001 From: kimsible Date: Fri, 14 Aug 2020 14:34:47 +0200 Subject: Migrate i18n to localize --- .../app/+videos/+video-watch/comment/video-comment-add.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client') 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' import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { VideoCommentCreate } from '@shared/models' -import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-video-comment-add', @@ -39,7 +38,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, private videoCommentService: VideoCommentService, private modalService: NgbModal, private router: Router, - private i18n: I18n ) { super() } @@ -57,9 +55,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, if (this.user) { if (!this.parentComment) { - this.addingCommentButtonValue = this.i18n('Comment') + this.addingCommentButtonValue = $localize`Comment` } else { - this.addingCommentButtonValue = this.i18n('Reply') + this.addingCommentButtonValue = $localize`Reply` } this.initTextValue() -- cgit v1.2.3