import { AuthService, Notifier, RestExtractor, ScreenService } from '@app/core'
import { ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main'
import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
templateUrl: './video-channels.component.html',
private routeSub: Subscription
constructor (
- private i18n: I18n,
private route: ActivatedRoute,
private notifier: Notifier,
private authService: AuthService,
this.subscribeButton.unsubscribe() :
this.subscribeButton.subscribe()
return false
- }, undefined, this.i18n('Subscribe to the account'))
+ }, undefined, $localize`Subscribe to the account`)
]
if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys)
this.links = [
- { label: this.i18n('VIDEOS'), routerLink: 'videos' },
- { label: this.i18n('VIDEO PLAYLISTS'), routerLink: 'video-playlists' },
- { label: this.i18n('ABOUT'), routerLink: 'about' }
+ { label: $localize`VIDEOS`, routerLink: 'videos' },
+ { label: $localize`VIDEO PLAYLISTS`, routerLink: 'video-playlists' },
+ { label: $localize`ABOUT`, routerLink: 'about' }
]
}
}
activateCopiedMessage () {
- this.notifier.success(this.i18n('Username copied'))
+ this.notifier.success($localize`Username copied`)
}
}