import { Component, EventEmitter, OnInit, Output, ViewChild } from '@angular/core'
import { Notifier } from '@app/core'
+import { prepareIcu } from '@app/helpers'
import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
import { Video } from '@app/shared/shared-main'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
this.videoBlocklistService.blockVideo(options)
.subscribe({
next: () => {
- const message = this.isMultiple
- ? $localize`Blocked ${this.videos.length} videos.`
- : $localize`Blocked ${this.getSingleVideo().name}`
+ const message = prepareIcu($localize`{count, plural, =1 {Blocked {videoName}.} other {Blocked {count} videos.}}`)(
+ { count: this.videos.length, videoName: this.getSingleVideo().name },
+ $localize`Blocked ${this.videos.length} videos.`
+ )
this.notifier.success(message)
this.hide()