From 3255e48cacecac1947e942e00e9b888c9f5ac1e3 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Mon, 30 Jan 2023 17:30:29 +0200 Subject: [PATCH] UI: fixed applying custom translation to labels of latest data keys in timeseries widgets --- ui-ngx/src/app/core/api/widget-subscription.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/core/api/widget-subscription.ts b/ui-ngx/src/app/core/api/widget-subscription.ts index 332b8db14f..dea1c44fd6 100644 --- a/ui-ngx/src/app/core/api/widget-subscription.ts +++ b/ui-ngx/src/app/core/api/widget-subscription.ts @@ -1402,6 +1402,7 @@ export class WidgetSubscription implements IWidgetSubscription { })); if (datasource.latestDataKeys) { datasourceDataArray = datasourceDataArray.concat(datasource.latestDataKeys.map((dataKey, latestKeyIndex) => { + dataKey.label = this.ctx.utils.customTranslation(dataKey.label, dataKey.label); const datasourceData: DatasourceData = { datasource, dataKey,