diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/count/count-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/count/count-widget.component.ts index 3302ba4477..63208d9665 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/count/count-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/count/count-widget.component.ts @@ -42,6 +42,7 @@ import { } from '@home/components/widget/lib/count/count-widget.models'; import { coerceBoolean } from '@shared/decorators/coercion'; import { ResizeObserver } from '@juggle/resize-observer'; +import { UtilsService } from '@core/services/utils.service'; const layoutHeight = 36; const layoutHeightWithTitle = 60; @@ -104,6 +105,7 @@ export class CountWidgetComponent implements OnInit, AfterViewInit, OnDestroy { private hasTitle = false; constructor(private renderer: Renderer2, + private utils: UtilsService, private cd: ChangeDetectorRef) { } @@ -114,7 +116,7 @@ export class CountWidgetComponent implements OnInit, AfterViewInit, OnDestroy { this.layout = this.settings.layout; this.showLabel = this.settings.showLabel; - this.label = this.settings.label; + this.label = this.utils.customTranslation(this.settings.label, this.settings.label); this.labelStyle = textStyle(this.settings.labelFont); this.labelColor = ColorProcessor.fromSettings(this.settings.labelColor);