Skip to content

Commit

Permalink
Rename fr locale -> fr-FR
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jun 6, 2018
1 parent 74b7c6d commit 9f16472
Show file tree
Hide file tree
Showing 5 changed files with 2,902 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/assets/player/peertube-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './peertube-videojs-plugin'
import './peertube-load-progress-bar'
import { videojsUntyped } from './peertube-videojs-typings'
import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils'
import { getCompleteLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n'
import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n'

// Change 'Playback Rate' to 'Speed' (smaller for our settings menu)
videojsUntyped.getComponent('PlaybackRateMenuButton').prototype.controlText_ = 'Speed'
Expand Down Expand Up @@ -147,7 +147,7 @@ function loadLocale (serverUrl: string, videojs: any, locale: string) {

return fetch(serverUrl + '/client/locales/' + completeLocale + '/player.json')
.then(res => res.json())
.then(json => videojs.addLanguage(completeLocale, json))
.then(json => videojs.addLanguage(getShortLocale(completeLocale), json))
}

export {
Expand Down
Loading

0 comments on commit 9f16472

Please sign in to comment.