import { Account } from '@app/shared/shared-main'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'
-import { I18n } from '@ngx-translate/i18n-polyfill'
import { abusePredefinedReasonsMap } from '@shared/core-utils/abuse'
import { AbusePredefinedReasonsString } from '@shared/models'
import { AbuseService } from '../abuse.service'
private modalService: NgbModal,
private abuseValidatorsService: AbuseValidatorsService,
private abuseService: AbuseService,
- private notifier: Notifier,
- private i18n: I18n
+ private notifier: Notifier
) {
super()
}
}
ngOnInit () {
- this.modalTitle = this.i18n('Report {{displayName}}', { displayName: this.account.displayName })
+ this.modalTitle = $localize`Report ${this.account.displayName}`
this.buildForm({
reason: this.abuseValidatorsService.ABUSE_REASON,
}
}).subscribe(
() => {
- this.notifier.success(this.i18n('Account reported.'))
+ this.notifier.success($localize`Account reported.`)
this.hide()
},