From 838d6982a834225413c32efb79cafbc555040bd7 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Mon, 11 Oct 2021 12:26:01 +0300 Subject: [PATCH 1/2] UI: make dashboard title translatable when 'Display dashboard title' option enabled --- .../components/dashboard-page/dashboard-page.component.html | 2 +- .../home/components/dashboard-page/dashboard-page.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html index a6d91d87ae..8f97f5c7e8 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html @@ -148,7 +148,7 @@
-

{{ dashboard.title }}

+

{{ utils.customTranslation(dashboard.title, dashboard.title) }}

dashboard.title Date: Thu, 21 Oct 2021 13:10:31 +0300 Subject: [PATCH 2/2] Save translated title as variable --- .../dashboard-page/dashboard-page.component.html | 2 +- .../dashboard-page/dashboard-page.component.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html index 8f97f5c7e8..27c436c802 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html @@ -148,7 +148,7 @@
-

{{ utils.customTranslation(dashboard.title, dashboard.title) }}

+

{{ translatedDashboardTitle }}

dashboard.title