+ getVideoPlaylistPrivacies () {
+ if (!this.videoPlaylistPrivaciesObservable) {
+ this.videoPlaylistPrivaciesObservable = this.loadAttributeEnum<number>(ServerService.BASE_VIDEO_PLAYLIST_URL, 'privacies')
+ }
+
+ return this.videoPlaylistPrivaciesObservable.pipe(first())
+ }
+
+ getServerLocale () {
+ if (!this.localeObservable) {
+ const completeLocale = isOnDevLocale() ? getDevLocale() : getCompleteLocale(this.localeId)
+
+ // Default locale, nothing to translate
+ if (isDefaultLocale(completeLocale)) {
+ this.localeObservable = of({}).pipe(shareReplay())
+ } else {
+ this.localeObservable = this.http
+ .get(ServerService.BASE_LOCALE_URL + completeLocale + '/server.json')
+ .pipe(shareReplay())
+ }
+ }
+
+ return this.localeObservable.pipe(first())