@abp/ng.core 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -569,8 +569,7 @@ class SessionStateService {
569
569
  this.store.sliceUpdate(state => state).subscribe(this.updateLocalStorage);
570
570
  }
571
571
  setInitialLanguage() {
572
- if (this.getLanguage())
573
- return;
572
+ const appLanguage = this.getLanguage();
574
573
  this.configState
575
574
  .getDeep$('localization.currentCulture.cultureName')
576
575
  .pipe(filter(cultureName => !!cultureName), take(1))
@@ -578,7 +577,9 @@ class SessionStateService {
578
577
  if (lang.includes(';')) {
579
578
  lang = lang.split(';')[0];
580
579
  }
581
- this.setLanguage(lang);
580
+ if (appLanguage !== lang) {
581
+ this.setLanguage(lang);
582
+ }
582
583
  });
583
584
  }
584
585
  onLanguageChange$() {