Migrate i18n to localize

pull/3085/head
kimsible 2020-08-14 14:34:47 +02:00 committed by Chocobozzz
parent 230c3ba24b
commit da188b9f9e
1 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,6 @@ import { Video } from '@app/shared/shared-main'
import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { VideoCommentCreate } from '@shared/models' import { VideoCommentCreate } from '@shared/models'
import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({ @Component({
selector: 'my-video-comment-add', selector: 'my-video-comment-add',
@ -39,7 +38,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
private videoCommentService: VideoCommentService, private videoCommentService: VideoCommentService,
private modalService: NgbModal, private modalService: NgbModal,
private router: Router, private router: Router,
private i18n: I18n
) { ) {
super() super()
} }
@ -57,9 +55,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
if (this.user) { if (this.user) {
if (!this.parentComment) { if (!this.parentComment) {
this.addingCommentButtonValue = this.i18n('Comment') this.addingCommentButtonValue = $localize`Comment`
} else { } else {
this.addingCommentButtonValue = this.i18n('Reply') this.addingCommentButtonValue = $localize`Reply`
} }
this.initTextValue() this.initTextValue()