nuxeo-development-framework 4.2.9 → 4.3.0

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.
@@ -1629,11 +1629,13 @@
1629
1629
  if (locale) {
1630
1630
  _this.userLang = locale.split('-')[0];
1631
1631
  }
1632
- if (_this.userLang) {
1633
- _this.loadTranslation(_this.userLang, _this.defaultLang);
1634
- }
1635
- else {
1636
- _this.loadTranslation(_this.defaultLang);
1632
+ if (_this.nuxeoService.nuxeoClient) {
1633
+ if (_this.userLang) {
1634
+ _this.loadTranslation(_this.userLang, _this.defaultLang);
1635
+ }
1636
+ else {
1637
+ _this.loadTranslation(_this.defaultLang);
1638
+ }
1637
1639
  }
1638
1640
  });
1639
1641
  }