pull frontend lang setting from db if set

This commit is contained in:
Michael Shamoon
2022-05-18 02:41:15 -07:00
parent 097795bf0c
commit 51b552168a
2 changed files with 19 additions and 8 deletions

View File

@@ -65,6 +65,9 @@ export class SettingsService {
tap((uisettings) => {
Object.assign(this.settings, uisettings.settings)
this.maybeMigrateSettings()
// to update lang cookie
if (this.settings['language']?.length)
this.setLanguage(this.settings['language'])
this.displayName = uisettings.display_name.trim()
})
)