diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-31 18:12:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | 989e526abf0c0dd7958deb630df009608561bb67 (patch) | |
tree | 5d948bf953a7006b1d6b8c34fb03da1df612a50f /client/src/app/videos/video-list/video-trending.component.ts | |
parent | 1dd59831f80ff4d49f3b60c8c3b2aabfb1512eeb (diff) | |
download | PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.gz PeerTube-989e526abf0c0dd7958deb630df009608561bb67.tar.zst PeerTube-989e526abf0c0dd7958deb630df009608561bb67.zip |
Prepare i18n files
Diffstat (limited to 'client/src/app/videos/video-list/video-trending.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-trending.component.ts | 20 |
1 files changed, 13 insertions, 7 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 ea65070f9..760470e8c 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts | |||
@@ -7,6 +7,7 @@ import { AuthService } from '../../core/auth' | |||
7 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 7 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' |
8 | import { VideoSortField } from '../../shared/video/sort-field.type' | 8 | import { VideoSortField } from '../../shared/video/sort-field.type' |
9 | import { VideoService } from '../../shared/video/video.service' | 9 | import { VideoService } from '../../shared/video/video.service' |
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
10 | 11 | ||
11 | @Component({ | 12 | @Component({ |
12 | selector: 'my-videos-trending', | 13 | selector: 'my-videos-trending', |
@@ -14,17 +15,22 @@ import { VideoService } from '../../shared/video/video.service' | |||
14 | templateUrl: '../../shared/video/abstract-video-list.html' | 15 | templateUrl: '../../shared/video/abstract-video-list.html' |
15 | }) | 16 | }) |
16 | export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { | 17 | export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { |
17 | titlePage = 'Trending' | 18 | titlePage: string |
18 | currentRoute = '/videos/trending' | 19 | currentRoute = '/videos/trending' |
19 | defaultSort: VideoSortField = '-views' | 20 | defaultSort: VideoSortField = '-views' |
20 | 21 | ||
21 | constructor (protected router: Router, | 22 | constructor ( |
22 | protected route: ActivatedRoute, | 23 | protected router: Router, |
23 | protected notificationsService: NotificationsService, | 24 | protected route: ActivatedRoute, |
24 | protected authService: AuthService, | 25 | protected notificationsService: NotificationsService, |
25 | protected location: Location, | 26 | protected authService: AuthService, |
26 | private videoService: VideoService) { | 27 | protected location: Location, |
28 | private videoService: VideoService, | ||
29 | private i18n: I18n | ||
30 | ) { | ||
27 | super() | 31 | super() |
32 | |||
33 | this.titlePage = i18n('Trending') | ||
28 | } | 34 | } |
29 | 35 | ||
30 | ngOnInit () { | 36 | ngOnInit () { |