aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-12 10:40:04 +0200
committerChocobozzz <me@florianbigard.com>2020-08-14 10:28:30 +0200
commit66357162f8e1227495f09bd4f68446aad7071c6d (patch)
tree7d4429506deb512b2fe1d0267f38a28cda20af55 /client/src/app/+videos/video-list/video-user-subscriptions.component.ts
parent8c360747995e17eb5520e22fc3d7bd4c3d26eeee (diff)
downloadPeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.tar.gz
PeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.tar.zst
PeerTube-66357162f8e1227495f09bd4f68446aad7071c6d.zip
Migrate to $localize
* Remove i18n polyfill to translate things in components * Reduce bundle sizes * Improve runtime perf * Reduce a lot the time to make a full client build * Reduce client build complexity * We don't need a service to translate things anymore (so we will be able to translate title pages etc) Unfortunately we may loose some translations in the migration process. I'll put a message on weblate to notify translators
Diffstat (limited to 'client/src/app/+videos/video-list/video-user-subscriptions.component.ts')
-rw-r--r--client/src/app/+videos/video-list/video-user-subscriptions.component.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
index 41ad9b277..b02988169 100644
--- a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
+++ b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts
@@ -3,10 +3,8 @@ import { ActivatedRoute, Router } from '@angular/router'
3import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' 3import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
4import { HooksService } from '@app/core/plugins/hooks.service' 4import { HooksService } from '@app/core/plugins/hooks.service'
5import { immutableAssign } from '@app/helpers' 5import { immutableAssign } from '@app/helpers'
6import { VideoService } from '@app/shared/shared-main'
7import { UserSubscriptionService } from '@app/shared/shared-user-subscription' 6import { UserSubscriptionService } from '@app/shared/shared-user-subscription'
8import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature' 7import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature'
9import { I18n } from '@ngx-translate/i18n-polyfill'
10import { VideoSortField } from '@shared/models' 8import { VideoSortField } from '@shared/models'
11 9
12@Component({ 10@Component({
@@ -21,7 +19,6 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
21 groupByDate = true 19 groupByDate = true
22 20
23 constructor ( 21 constructor (
24 protected i18n: I18n,
25 protected router: Router, 22 protected router: Router,
26 protected serverService: ServerService, 23 protected serverService: ServerService,
27 protected route: ActivatedRoute, 24 protected route: ActivatedRoute,
@@ -31,15 +28,14 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement
31 protected screenService: ScreenService, 28 protected screenService: ScreenService,
32 protected storageService: LocalStorageService, 29 protected storageService: LocalStorageService,
33 private userSubscription: UserSubscriptionService, 30 private userSubscription: UserSubscriptionService,
34 private videoService: VideoService,
35 private hooks: HooksService 31 private hooks: HooksService
36 ) { 32 ) {
37 super() 33 super()
38 34
39 this.titlePage = i18n('Videos from your subscriptions') 35 this.titlePage = $localize`Videos from your subscriptions`
40 this.actions.push({ 36 this.actions.push({
41 routerLink: '/my-account/subscriptions', 37 routerLink: '/my-account/subscriptions',
42 label: i18n('Subscriptions'), 38 label: $localize`Subscriptions`,
43 iconName: 'cog' 39 iconName: 'cog'
44 }) 40 })
45 } 41 }