diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 16:31:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 16:31:52 +0200 |
commit | 0975cd5cf260bd06c797ac7582675ac624a47ebc (patch) | |
tree | 7b02b1694f695d4ff71db52592c3ccd1e6998897 /client/src/app/+admin/follows/follows.component.ts | |
parent | 7a9fd8b54dd278cbb341daf96baca769bfe92ce9 (diff) | |
download | PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.gz PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.zst PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.zip |
Translate tab heads
Diffstat (limited to 'client/src/app/+admin/follows/follows.component.ts')
-rw-r--r-- | client/src/app/+admin/follows/follows.component.ts | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/client/src/app/+admin/follows/follows.component.ts b/client/src/app/+admin/follows/follows.component.ts index f29ad384f..f7af9826c 100644 --- a/client/src/app/+admin/follows/follows.component.ts +++ b/client/src/app/+admin/follows/follows.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' | 1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' |
2 | import { NavigationEnd, Router } from '@angular/router' | 2 | import { NavigationEnd, Router } from '@angular/router' |
3 | import { TabsetComponent } from 'ngx-bootstrap/tabs' | 3 | import { TabsetComponent } from 'ngx-bootstrap/tabs' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | templateUrl: './follows.component.html', | 7 | templateUrl: './follows.component.html', |
@@ -9,22 +10,27 @@ import { TabsetComponent } from 'ngx-bootstrap/tabs' | |||
9 | export class FollowsComponent implements OnInit, AfterViewInit { | 10 | export class FollowsComponent implements OnInit, AfterViewInit { |
10 | @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent | 11 | @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent |
11 | 12 | ||
12 | links = [ | 13 | links: { path: string, title: string }[] = [] |
13 | { | 14 | |
14 | path: 'following-list', | 15 | constructor ( |
15 | title: 'Following' | 16 | private i18n: I18n, |
16 | }, | 17 | private router: Router |
17 | { | 18 | ) { |
18 | path: 'following-add', | 19 | this.links = [ |
19 | title: 'Follow' | 20 | { |
20 | }, | 21 | path: 'following-list', |
21 | { | 22 | title: this.i18n('Following') |
22 | path: 'followers-list', | 23 | }, |
23 | title: 'Followers' | 24 | { |
24 | } | 25 | path: 'following-add', |
25 | ] | 26 | title: this.i18n('Follow') |
26 | 27 | }, | |
27 | constructor (private router: Router) {} | 28 | { |
29 | path: 'followers-list', | ||
30 | title: this.i18n('Followers') | ||
31 | } | ||
32 | ] | ||
33 | } | ||
28 | 34 | ||
29 | ngOnInit () { | 35 | ngOnInit () { |
30 | this.router.events.subscribe( | 36 | this.router.events.subscribe( |