diff options
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/peertube-player.ts | 4 |
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' | |||
12 | import './peertube-load-progress-bar' | 12 | import './peertube-load-progress-bar' |
13 | import { videojsUntyped } from './peertube-videojs-typings' | 13 | import { videojsUntyped } from './peertube-videojs-typings' |
14 | import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils' | 14 | import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils' |
15 | import { getCompleteLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n' | 15 | import { 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) |
18 | videojsUntyped.getComponent('PlaybackRateMenuButton').prototype.controlText_ = 'Speed' | 18 | videojsUntyped.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 | ||
153 | export { | 153 | export { |