aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-03 10:11:26 +0200
committerChocobozzz <me@florianbigard.com>2018-10-03 10:11:26 +0200
commite33f888b86734f7e050a5e3d6f73f852b6de955a (patch)
treeea722659930951a55fbb209f5a5e33ae7e4d1918 /client/src/app/+video-channels
parent60709df53602def422e8c32509c27c65b52cb1bd (diff)
downloadPeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.tar.gz
PeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.tar.zst
PeerTube-e33f888b86734f7e050a5e3d6f73f852b6de955a.zip
Fix hotkey translations
Diffstat (limited to 'client/src/app/+video-channels')
-rw-r--r--client/src/app/+video-channels/video-channels.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index 82b4a345e..0c5c814c7 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -8,6 +8,7 @@ import { Subscription } from 'rxjs'
8import { AuthService } from '@app/core' 8import { AuthService } from '@app/core'
9import { Hotkey, HotkeysService } from 'angular2-hotkeys' 9import { Hotkey, HotkeysService } from 'angular2-hotkeys'
10import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' 10import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component'
11import { I18n } from '@ngx-translate/i18n-polyfill'
11 12
12@Component({ 13@Component({
13 templateUrl: './video-channels.component.html', 14 templateUrl: './video-channels.component.html',
@@ -22,6 +23,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
22 private routeSub: Subscription 23 private routeSub: Subscription
23 24
24 constructor ( 25 constructor (
26 private i18n: I18n,
25 private route: ActivatedRoute, 27 private route: ActivatedRoute,
26 private authService: AuthService, 28 private authService: AuthService,
27 private videoChannelService: VideoChannelService, 29 private videoChannelService: VideoChannelService,
@@ -45,7 +47,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
45 this.subscribeButton.unsubscribe() : 47 this.subscribeButton.unsubscribe() :
46 this.subscribeButton.subscribe() 48 this.subscribeButton.subscribe()
47 return false 49 return false
48 }, undefined, 'Subscribe to the account') 50 }, undefined, this.i18n('Subscribe to the account'))
49 ] 51 ]
50 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys) 52 if (this.isUserLoggedIn()) this.hotkeysService.add(this.hotkeys)
51 } 53 }