Readme Change (#2190)
* Implemented the ability to login to the app by passing apiKey to the login. This is for an upcoming feature (but currently blocked by another story) * Added a comment * Ensure locales are sorted * Added a new status badge that shows how many active installs we have via users that use stats. * Bump all GA to latest versions * Bumped dependencies * Bumped backend notifications * Updated ngx-pdf-reader to upcoming beta which fixes some PDFs taking time to load. PDF reader will use browser locale to load localization rather than Kavita locale for now. * Downgraded pdf viewer as beta has lots of bugs.
This commit is contained in:
parent
d4e1e08b4f
commit
9f17f5daa7
17 changed files with 93 additions and 76 deletions
|
@ -34,14 +34,12 @@ export function preloadUser(userService: AccountService, transloco: TranslocoSer
|
|||
return function() {
|
||||
return userService.currentUser$.pipe(switchMap((user) => {
|
||||
if (user && user.preferences.locale) {
|
||||
console.log('preloaded locale: ', user.preferences.locale)
|
||||
transloco.setActiveLang(user.preferences.locale);
|
||||
return transloco.load(user.preferences.locale)
|
||||
}
|
||||
|
||||
// If no user or locale is available, fallback to the default language ('en')
|
||||
const localStorageLocale = localStorage.getItem(AccountService.localeKey) || 'en';
|
||||
console.log('preloaded locale: ', localStorageLocale)
|
||||
transloco.setActiveLang(localStorageLocale);
|
||||
return transloco.load(localStorageLocale)
|
||||
})).subscribe();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue