aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-16 11:11:20 +0200
committerChocobozzz <me@florianbigard.com>2018-08-16 11:11:20 +0200
commit95d5113575ffe7872861352fec0adc35bbd8754d (patch)
tree581ad51f75928d359c3a4faf53d05227747fd4d5 /client/src/assets/player/peertube-player.ts
parent3dfa84940273619ae00f11a5f419a5e4876b2f53 (diff)
downloadPeerTube-95d5113575ffe7872861352fec0adc35bbd8754d.tar.gz
PeerTube-95d5113575ffe7872861352fec0adc35bbd8754d.tar.zst
PeerTube-95d5113575ffe7872861352fec0adc35bbd8754d.zip
Translate player according to the interface lang
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r--client/src/assets/player/peertube-player.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 1b1ec7a68..0b9303a73 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -35,6 +35,7 @@ function getVideojsOptions (options: {
35 startTime: number | string 35 startTime: number | string
36 theaterMode: boolean, 36 theaterMode: boolean,
37 videoCaptions: VideoJSCaption[], 37 videoCaptions: VideoJSCaption[],
38 language?: string,
38 controls?: boolean, 39 controls?: boolean,
39 muted?: boolean, 40 muted?: boolean,
40 loop?: boolean 41 loop?: boolean
@@ -74,6 +75,10 @@ function getVideojsOptions (options: {
74 }) 75 })
75 } 76 }
76 77
78 if (options.language && !isDefaultLocale(options.language)) {
79 Object.assign(videojsOptions, { language: options.language })
80 }
81
77 return videojsOptions 82 return videojsOptions
78} 83}
79 84