From f19a9e4b68f581610badcbb888727470d8c095b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Jan 2021 10:25:58 +0100 Subject: [PATCH] Add missing translations --- .../src/app/+videos/video-list/video-trending.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/app/+videos/video-list/video-trending.component.ts b/client/src/app/+videos/video-list/video-trending.component.ts index babcb9067..a188795d1 100644 --- a/client/src/app/+videos/video-list/video-trending.component.ts +++ b/client/src/app/+videos/video-list/video-trending.component.ts @@ -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` }) }