X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideo-channels%2Fvideo-channel-videos%2Fvideo-channel-videos.component.ts;h=f32a892a44dae2b2609302e14eccaf09691f92db;hb=0b1de58658a5b131b8a4bbaf2e095002ca89e8c6;hp=5e60b34b4249c64146e52e23753aa089352cbc3f;hpb=722bca907b6aa69c3b617221870451ccf436921a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts index 5e60b34b4..f32a892a4 100644 --- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts +++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts @@ -29,6 +29,7 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On private videoChannelSub: Subscription constructor ( + protected i18n: I18n, protected router: Router, protected serverService: ServerService, protected route: ActivatedRoute, @@ -36,7 +37,6 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On protected notifier: Notifier, protected confirmService: ConfirmService, protected screenService: ScreenService, - private i18n: I18n, private videoChannelService: VideoChannelService, private videoService: VideoService ) { @@ -71,8 +71,8 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On return this.videoService .getVideoChannelVideos(this.videoChannel, newPagination, this.sort) .pipe( - tap(({ totalVideos }) => { - this.titlePage = this.i18n('Published {{totalVideos}} videos', { totalVideos }) + tap(({ total }) => { + this.titlePage = this.i18n(`{total, plural, =1 {Published 1 video} other {Published {{total}} videos}}`, { total }) }) ) }