@abp/ng.theme.shared 5.1.1 → 5.1.4

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.
@@ -1251,9 +1251,7 @@ class DocumentDirHandlerService {
1251
1251
  listenToLanguageChanges() {
1252
1252
  const l10n = this.injector.get(LocalizationService);
1253
1253
  // will always listen, no need to unsubscribe
1254
- l10n.languageChange$
1255
- .pipe(startWith(l10n.currentLang), map(locale => getLocaleDirection(locale)))
1256
- .subscribe(dir => {
1254
+ l10n.currentLang$.pipe(map(locale => getLocaleDirection(locale))).subscribe(dir => {
1257
1255
  this.dir.next(dir);
1258
1256
  this.setBodyDir(dir);
1259
1257
  });