import { AccountFollow } from '../../../../../../shared/models/actors/follow.model'
import { RestPagination, RestTable } from '../../../shared'
import { FollowService } from '../shared'
+import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-followers-list',
constructor (
private notificationsService: NotificationsService,
- private followService: FollowService
+ private followService: FollowService,
+ private i18n: I18n
) {
super()
}
this.totalRecords = resultList.total
},
- err => this.notificationsService.error('Error', err.message)
+ err => this.notificationsService.error(this.i18n('Error'), err.message)
)
}
}