diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-04 16:21:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | b1d40cff89f7cff565a98cdbcea9a624196a169a (patch) | |
tree | d24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/+admin/follows/followers-list/followers-list.component.ts | |
parent | 989e526abf0c0dd7958deb630df009608561bb67 (diff) | |
download | PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip |
Add i18n attributes
Diffstat (limited to 'client/src/app/+admin/follows/followers-list/followers-list.component.ts')
-rw-r--r-- | client/src/app/+admin/follows/followers-list/followers-list.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts index 69b3e5e58..96fb67588 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts | |||
@@ -5,6 +5,7 @@ import { SortMeta } from 'primeng/primeng' | |||
5 | import { AccountFollow } from '../../../../../../shared/models/actors/follow.model' | 5 | import { AccountFollow } from '../../../../../../shared/models/actors/follow.model' |
6 | import { RestPagination, RestTable } from '../../../shared' | 6 | import { RestPagination, RestTable } from '../../../shared' |
7 | import { FollowService } from '../shared' | 7 | import { FollowService } from '../shared' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | 9 | ||
9 | @Component({ | 10 | @Component({ |
10 | selector: 'my-followers-list', | 11 | selector: 'my-followers-list', |
@@ -20,7 +21,8 @@ export class FollowersListComponent extends RestTable implements OnInit { | |||
20 | 21 | ||
21 | constructor ( | 22 | constructor ( |
22 | private notificationsService: NotificationsService, | 23 | private notificationsService: NotificationsService, |
23 | private followService: FollowService | 24 | private followService: FollowService, |
25 | private i18n: I18n | ||
24 | ) { | 26 | ) { |
25 | super() | 27 | super() |
26 | } | 28 | } |
@@ -37,7 +39,7 @@ export class FollowersListComponent extends RestTable implements OnInit { | |||
37 | this.totalRecords = resultList.total | 39 | this.totalRecords = resultList.total |
38 | }, | 40 | }, |
39 | 41 | ||
40 | err => this.notificationsService.error('Error', err.message) | 42 | err => this.notificationsService.error(this.i18n('Error'), err.message) |
41 | ) | 43 | ) |
42 | } | 44 | } |
43 | } | 45 | } |