@sumaris-net/ngx-components 2.4.3 → 2.4.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.
@@ -18511,8 +18511,16 @@ class PlatformService extends StartableService {
18511
18511
  }
18512
18512
  });
18513
18513
  this.settings.onChange.subscribe(data => {
18514
- if (data && data.locale && data.locale !== this.translate.currentLang) {
18515
- this.translate.use(data.locale);
18514
+ if (data) {
18515
+ if (data.locale) {
18516
+ if (data.locale !== this.translate.currentLang) {
18517
+ this.translate.use(data.locale);
18518
+ }
18519
+ }
18520
+ else {
18521
+ // Hotfix from ludovic.pecquot@e-is.pro (14/11/2021) - See 1.20.42
18522
+ this.translate.use(this.environment.defaultLocale);
18523
+ }
18516
18524
  }
18517
18525
  });
18518
18526
  // Use account's settings, (like locale), when account inheritance enabled