X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo-caption%2Fvideo-caption.service.ts;h=6bfe6743573453af7ff73cce3f9340e858b56054;hb=366b21f13f75b33f9d64744d7564e7cddf5b1ae8;hp=977f6253ab4e4f4ff78a4456ca41bf408ead5cef;hpb=ed4c3c091009f85dd5e2775087b33ebd7f22ffd2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video-caption/video-caption.service.ts b/client/src/app/shared/video-caption/video-caption.service.ts index 977f6253a..6bfe67435 100644 --- a/client/src/app/shared/video-caption/video-caption.service.ts +++ b/client/src/app/shared/video-caption/video-caption.service.ts @@ -22,7 +22,7 @@ export class VideoCaptionService { return this.authHttp.get>(VideoService.BASE_VIDEO_URL + videoId + '/captions') .pipe( switchMap(captionsResult => { - return this.serverService.localeObservable + return this.serverService.getServerLocale() .pipe(map(translations => ({ captionsResult, translations }))) }), map(({ captionsResult, translations }) => {