ActivityPub-federated video streaming platform using P2P directly in your web browser
Correctly cache server translations
Chocobozzz4bda2e47bbc9
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.tsindex 6d886d2ddd..7823fa80e0 100644--- a/client/src/app/core/server/server.service.ts+++ b/client/src/app/core/server/server.service.ts@@ -1,4 +1,4 @@-import { map, share, switchMap, tap } from 'rxjs/operators'+import { map, shareReplay, switchMap, tap } from 'rxjs/operators'import { HttpClient } from '@angular/common/http'import { Inject, Injectable, LOCALE_ID } from '@angular/core'import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage'@@ -178,13 +178,13 @@ export class ServerService {// Default locale, nothing to translateif (isDefaultLocale(completeLocale)) {- this.localeObservable = of({}).pipe(share())+ this.localeObservable = of({}).pipe(shareReplay())return}this.localeObservable = this.http.get(ServerService.BASE_LOCALE_URL + completeLocale + '/server.json')- .pipe(share())+ .pipe(shareReplay())}private saveConfigLocally (config: ServerConfig) {