diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-06 14:32:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-29 09:49:06 +0200 |
commit | 866c5f667da9fc09f3b093ff0a6f89d4af0ce5af (patch) | |
tree | 7a42f7974cec400f9cf09e86de00e69e36b2136d /client/src/app/+admin/overview/comments | |
parent | 40346ead2b0b7afa475aef057d3673b6c7574b7a (diff) | |
download | PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.gz PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.zst PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.zip |
Simplify ICU in components
Diffstat (limited to 'client/src/app/+admin/overview/comments')
-rw-r--r-- | client/src/app/+admin/overview/comments/video-comment-list.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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 28efdc076..b77072665 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,7 +7,7 @@ import { DropdownAction } from '@app/shared/shared-main' | |||
7 | import { BulkService } from '@app/shared/shared-moderation' | 7 | import { BulkService } from '@app/shared/shared-moderation' |
8 | import { VideoCommentAdmin, VideoCommentService } from '@app/shared/shared-video-comment' | 8 | import { VideoCommentAdmin, VideoCommentService } from '@app/shared/shared-video-comment' |
9 | import { FeedFormat, UserRight } from '@shared/models' | 9 | import { FeedFormat, UserRight } from '@shared/models' |
10 | import { prepareIcu } from '@app/helpers' | 10 | import { formatICU } from '@app/helpers' |
11 | 11 | ||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-video-comment-list', | 13 | selector: 'my-video-comment-list', |
@@ -146,9 +146,9 @@ export class VideoCommentListComponent extends RestTable <VideoCommentAdmin> imp | |||
146 | .subscribe({ | 146 | .subscribe({ |
147 | next: () => { | 147 | next: () => { |
148 | this.notifier.success( | 148 | this.notifier.success( |
149 | prepareIcu($localize`{count, plural, =1 {1 comment deleted.} other {{count} comments deleted.}}`)( | 149 | formatICU( |
150 | { count: commentArgs.length }, | 150 | $localize`{count, plural, =1 {1 comment deleted.} other {{count} comments deleted.}}`, |
151 | $localize`${commentArgs.length} comment(s) deleted.` | 151 | { count: commentArgs.length } |
152 | ) | 152 | ) |
153 | ) | 153 | ) |
154 | 154 | ||