From eaa529528cafcfb291009f9f99d296c81e792899 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 May 2022 16:29:01 +0200 Subject: Support ICU in TS components --- .../app/+admin/overview/comments/video-comment-list.component.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'client/src/app/+admin/overview/comments') diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.ts b/client/src/app/+admin/overview/comments/video-comment-list.component.ts index f3f43a900..f1b27d846 100644 --- a/client/src/app/+admin/overview/comments/video-comment-list.component.ts +++ b/client/src/app/+admin/overview/comments/video-comment-list.component.ts @@ -7,6 +7,7 @@ import { DropdownAction } from '@app/shared/shared-main' 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', @@ -145,7 +146,13 @@ export class VideoCommentListComponent extends RestTable implements OnInit { this.videoCommentService.deleteVideoComments(commentArgs) .subscribe({ next: () => { - this.notifier.success($localize`${commentArgs.length} comments deleted.`) + this.notifier.success( + prepareIcu($localize`{count, plural, =1 {1 comment} other {{count} comments}} deleted.`)( + { count: commentArgs.length }, + $localize`${commentArgs.length} comment(s) deleted.` + ) + ) + this.reloadData() }, -- cgit v1.2.3