From: Chocobozzz Date: Tue, 4 Feb 2020 16:13:47 +0000 (+0100) Subject: Fix i18n X-Git-Tag: v2.2.0-rc.1~538 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b1de58658a5b131b8a4bbaf2e095002ca89e8c6;p=oweals%2Fpeertube.git Fix i18n --- 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 }) }) ) }