]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add missing translations
authorChocobozzz <me@florianbigard.com>
Fri, 15 Jan 2021 09:25:58 +0000 (10:25 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 15 Jan 2021 09:25:58 +0000 (10:25 +0100)
client/src/app/+videos/video-list/video-trending.component.ts

index babcb9067b42d522cdcae5a33778613350ffd0ef..a188795d1b7a6608c1bc3949b6e21db478ce91a9 100644 (file)
@@ -45,10 +45,11 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
         if (trendingDays === 1) {
           this.titlePage = $localize`Trending for the last 24 hours`
           this.titleTooltip = $localize`Trending videos are those totalizing the greatest number of views during the last 24 hours`
-        } else {
-          this.titlePage = `Trending for the last ${trendingDays} days`
-          this.titleTooltip = `Trending videos are those totalizing the greatest number of views during the last ${trendingDays} days`
+          return
         }
+
+        this.titlePage = $localize`Trending for the last ${trendingDays} days`
+        this.titleTooltip = $localize`Trending videos are those totalizing the greatest number of views during the last ${trendingDays} days`
       })
   }