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',
private videoCommentService: VideoCommentService,
private modalService: NgbModal,
private router: Router,
- private i18n: I18n
) {
super()
}
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()