aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/video-download.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-29 15:03:01 +0100
committerChocobozzz <me@florianbigard.com>2021-01-29 15:03:01 +0100
commit3c904c6893550c2205455c3f02fce5a363a0283f (patch)
tree1e1de75624b13f01d37a7d8b177396b59179d82a /client/src/app/shared/shared-video-miniature/video-download.component.ts
parent3258fa5525c09402c7d4c21c86f30ee3f3366424 (diff)
parentad77e1750e4ca7b22c1115f2e0ef78af80dc86da (diff)
downloadPeerTube-3c904c6893550c2205455c3f02fce5a363a0283f.tar.gz
PeerTube-3c904c6893550c2205455c3f02fce5a363a0283f.tar.zst
PeerTube-3c904c6893550c2205455c3f02fce5a363a0283f.zip
Merge remote-tracking branch 'weblate/develop' into develop
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/video-download.component.ts')
-rw-r--r--client/src/app/shared/shared-video-miniature/video-download.component.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.ts b/client/src/app/shared/shared-video-miniature/video-download.component.ts
index 99838f712..70b27b105 100644
--- a/client/src/app/shared/shared-video-miniature/video-download.component.ts
+++ b/client/src/app/shared/shared-video-miniature/video-download.component.ts
@@ -1,5 +1,5 @@
1import { mapValues, pick } from 'lodash-es' 1import { mapValues, pick } from 'lodash-es'
2import { Component, ElementRef, ViewChild } from '@angular/core' 2import { Component, ElementRef, Inject, LOCALE_ID, ViewChild } from '@angular/core'
3import { AuthService, Notifier } from '@app/core' 3import { AuthService, Notifier } from '@app/core'
4import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap' 4import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap'
5import { VideoCaption, VideoFile, VideoPrivacy } from '@shared/models' 5import { VideoCaption, VideoFile, VideoPrivacy } from '@shared/models'
@@ -34,13 +34,14 @@ export class VideoDownloadComponent {
34 private numbersPipe: NumberFormatterPipe 34 private numbersPipe: NumberFormatterPipe
35 35
36 constructor ( 36 constructor (
37 @Inject(LOCALE_ID) private localeId: string,
37 private notifier: Notifier, 38 private notifier: Notifier,
38 private modalService: NgbModal, 39 private modalService: NgbModal,
39 private videoService: VideoService, 40 private videoService: VideoService,
40 private auth: AuthService 41 private auth: AuthService
41 ) { 42 ) {
42 this.bytesPipe = new BytesPipe() 43 this.bytesPipe = new BytesPipe()
43 this.numbersPipe = new NumberFormatterPipe() 44 this.numbersPipe = new NumberFormatterPipe(this.localeId)
44 } 45 }
45 46
46 get typeText () { 47 get typeText () {