diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-06 18:04:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-06 18:04:33 +0200 |
commit | 9f16472264b74345cb8c13dde98a5950253854ad (patch) | |
tree | 76f2cc81fd87d8b0065cabc57d9268136cf0bb0b /client/src/assets/player | |
parent | 74b7c6d48e9ca377fe938c8134ed74b612e62ba0 (diff) | |
download | PeerTube-9f16472264b74345cb8c13dde98a5950253854ad.tar.gz PeerTube-9f16472264b74345cb8c13dde98a5950253854ad.tar.zst PeerTube-9f16472264b74345cb8c13dde98a5950253854ad.zip |
Rename fr locale -> fr-FR
Diffstat (limited to 'client/src/assets/player')
-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 { |