import { Component, OnInit } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
import { AuthService, Notifier, UserService } from '@app/core'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-verify-account-email',
private userService: UserService,
private authService: AuthService,
private notifier: Notifier,
- private route: ActivatedRoute,
- private i18n: I18n
- ) {
+ private route: ActivatedRoute
+ ) {
}
ngOnInit () {
this.isPendingEmail = queryParams['isPendingEmail'] === 'true'
if (!this.userId || !this.verificationString) {
- this.notifier.error(this.i18n('Unable to find user id or verification string.'))
+ this.notifier.error($localize`Unable to find user id or verification string.`)
} else {
this.verifyEmail()
}