Fix i18n
authorChocobozzz <me@florianbigard.com>
Tue, 4 Feb 2020 16:13:47 +0000 (17:13 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 4 Feb 2020 16:16:09 +0000 (17:16 +0100)
client/src/app/+accounts/accounts.component.ts
client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts

index ad611f2211bf5961cf0ab28f948e4ed3716b7749..a8157de0e5bf194afdbe218e39512e34f57a1dc1 100644 (file)
@@ -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) {
index f4fe146628f6df89226f259f093925b5a33b7251..f32a892a44dae2b2609302e14eccaf09691f92db 100644 (file)
@@ -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 })
                  })
                )
   }