From 0b1de58658a5b131b8a4bbaf2e095002ca89e8c6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Feb 2020 17:13:47 +0100 Subject: [PATCH] Fix i18n --- client/src/app/+accounts/accounts.component.ts | 2 +- .../video-channel-videos/video-channel-videos.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts index ad611f221..a8157de0e 100644 --- a/client/src/app/+accounts/accounts.component.ts +++ b/client/src/app/+accounts/accounts.component.ts @@ -96,7 +96,7 @@ export class AccountsComponent implements OnInit, OnDestroy { } subscribersDisplayFor (count: number) { - return this.i18n(`{count, plural, =1 {1 subscriber} other {${count} subscribers}}`, { count }) + return this.i18n('{count, plural, =1 {1 subscriber} other {{{count}} subscribers}}', { count }) } private getUserIfNeeded (account: Account) { 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 f4fe14662..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 @@ -72,7 +72,7 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On .getVideoChannelVideos(this.videoChannel, newPagination, this.sort) .pipe( tap(({ total }) => { - this.titlePage = this.i18n(`{total, plural, =1 {Published 1 video} other {Published ${total} videos}}`, { total }) + this.titlePage = this.i18n(`{total, plural, =1 {Published 1 video} other {Published {{total}} videos}}`, { total }) }) ) } -- 2.25.1