@schneideress/dashboardframework 0.0.270 → 0.0.271

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.
@@ -17,6 +17,7 @@ var RaDashboardService = /** @class */ (function (_super) {
17
17
  function RaDashboardService(injector) {
18
18
  var _this = _super.call(this, injector, '') || this;
19
19
  _this.loadedScripts = [];
20
+ _this.clientId = undefined;
20
21
  return _this;
21
22
  }
22
23
  /*
@@ -585,6 +586,7 @@ var RADashboardArea = /** @class */ (function () {
585
586
  this.widgetList = [];
586
587
  this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
587
588
  _this.userWidgets = widgets;
589
+ _this.dashboardService.clientId = widgets[0].clientId;
588
590
  _this.PAMWidgets = [];
589
591
  widgets.forEach(function (element) {
590
592
  var settings = undefined;
@@ -1695,7 +1697,8 @@ var RAWidgetContainer = /** @class */ (function () {
1695
1697
  RAWidgetContainer.prototype.getwidgetTitleTranslation = function (item) {
1696
1698
  var rKey = 'DBW_' + this.translateService.makeCode(item);
1697
1699
  var translatedString = '';
1698
- translatedString = this.translateService.translate('Common.' + rKey);
1700
+ var translationModule = this.dashboardService.clientId + '_DBW';
1701
+ translatedString = this.translateService.translate(translationModule + '.' + rKey);
1699
1702
  if (translatedString.toLowerCase() === rKey.toLowerCase()) {
1700
1703
  return item;
1701
1704
  }