aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-06 18:04:33 +0200
committerChocobozzz <me@florianbigard.com>2018-06-06 18:04:33 +0200
commit9f16472264b74345cb8c13dde98a5950253854ad (patch)
tree76f2cc81fd87d8b0065cabc57d9268136cf0bb0b /client/src/assets/player/peertube-player.ts
parent74b7c6d48e9ca377fe938c8134ed74b612e62ba0 (diff)
downloadPeerTube-9f16472264b74345cb8c13dde98a5950253854ad.tar.gz
PeerTube-9f16472264b74345cb8c13dde98a5950253854ad.tar.zst
PeerTube-9f16472264b74345cb8c13dde98a5950253854ad.zip
Rename fr locale -> fr-FR
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r--client/src/assets/player/peertube-player.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 9e37b75d2..1707f34f0 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -12,7 +12,7 @@ import './peertube-videojs-plugin'
12import './peertube-load-progress-bar' 12import './peertube-load-progress-bar'
13import { videojsUntyped } from './peertube-videojs-typings' 13import { videojsUntyped } from './peertube-videojs-typings'
14import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils' 14import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils'
15import { getCompleteLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n' 15import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n'
16 16
17// Change 'Playback Rate' to 'Speed' (smaller for our settings menu) 17// Change 'Playback Rate' to 'Speed' (smaller for our settings menu)
18videojsUntyped.getComponent('PlaybackRateMenuButton').prototype.controlText_ = 'Speed' 18videojsUntyped.getComponent('PlaybackRateMenuButton').prototype.controlText_ = 'Speed'
@@ -147,7 +147,7 @@ function loadLocale (serverUrl: string, videojs: any, locale: string) {
147 147
148 return fetch(serverUrl + '/client/locales/' + completeLocale + '/player.json') 148 return fetch(serverUrl + '/client/locales/' + completeLocale + '/player.json')
149 .then(res => res.json()) 149 .then(res => res.json())
150 .then(json => videojs.addLanguage(completeLocale, json)) 150 .then(json => videojs.addLanguage(getShortLocale(completeLocale), json))
151} 151}
152 152
153export { 153export {