From 5d9bcce5cda430075405e8ea1ad1f1c26233642e Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 13 Oct 2022 18:09:56 +0400 Subject: [PATCH] Lightning pie chart i18n tooltip fix --- .../nodes-per-country-chart.component.ts | 2 +- .../nodes-per-isp-chart/nodes-per-isp-chart.component.ts | 4 ++-- frontend/src/locale/messages.xlf | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts b/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts index 03d6967fe..681688842 100644 --- a/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts +++ b/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts @@ -100,7 +100,7 @@ export class NodesPerCountryChartComponent implements OnInit { borderColor: '#000', formatter: () => { return `${country.name.en} (${country.share}%)
` + - $localize`${country.count.toString()} nodes
` + + $localize`${country.count.toString()} nodes` + `
` + $localize`${this.amountShortenerPipe.transform(country.capacity / 100000000, 2)} BTC capacity` ; } diff --git a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.ts b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.ts index 3299c529c..caaa350d6 100644 --- a/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.ts +++ b/frontend/src/app/lightning/nodes-per-isp-chart/nodes-per-isp-chart.component.ts @@ -154,7 +154,7 @@ export class NodesPerISPChartComponent implements OnInit { borderColor: '#000', formatter: () => { return `${isp[1]} (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)
` + - $localize`${isp[4].toString()} nodes
` + + $localize`${isp[4].toString()} nodes` + `
` + $localize`${this.amountShortenerPipe.transform(isp[2] / 100000000, 2)} BTC` ; } @@ -186,7 +186,7 @@ export class NodesPerISPChartComponent implements OnInit { borderColor: '#000', formatter: () => { return `Other (${totalShareOther.toFixed(2)}%)
` + - $localize`${nodeCountOther.toString()} nodes
` + + $localize`${nodeCountOther.toString()} nodes` + `
` + $localize`${this.amountShortenerPipe.transform(capacityOther / 100000000, 2)} BTC`; } }, diff --git a/frontend/src/locale/messages.xlf b/frontend/src/locale/messages.xlf index 480ed19c0..1a0fba692 100644 --- a/frontend/src/locale/messages.xlf +++ b/frontend/src/locale/messages.xlf @@ -5734,8 +5734,8 @@ lightning.share - - nodes<br> + + nodes src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts 103,102