import { BulkService } from '@app/shared/shared-moderation'
import { VideoCommentAdmin, VideoCommentService } from '@app/shared/shared-video-comment'
import { FeedFormat, UserRight } from '@shared/models'
+import { prepareIcu } from '@app/helpers'
@Component({
selector: 'my-video-comment-list',
{
value: 'local:false',
label: $localize`Remote comments`
+ },
+ {
+ value: 'localVideo:true',
+ label: $localize`Comments on local videos`
}
]
}
}
toHtml (text: string) {
- return this.markdownRenderer.textMarkdownToHTML(text, true, true)
+ return this.markdownRenderer.textMarkdownToHTML({ markdown: text, withHtml: true, withEmoji: true })
}
isInSelectionMode () {
this.videoCommentService.deleteVideoComments(commentArgs)
.subscribe({
next: () => {
- this.notifier.success($localize`${commentArgs.length} comments deleted.`)
+ this.notifier.success(
+ prepareIcu($localize`{count, plural, =1 {1 comment deleted.} other {{count} comments deleted.}}`)(
+ { count: commentArgs.length },
+ $localize`${commentArgs.length} comment(s) deleted.`
+ )
+ )
+
this.reloadData()
},