From 3b692d05bc132abe750e2520b31700795a32de6f Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 13 Oct 2022 17:40:13 +0400 Subject: [PATCH] More Lightning i18n fixes --- .../top-nodes-per-capacity.component.ts | 2 +- .../top-nodes-per-channels.component.ts | 6 ---- .../nodes-rankings-dashboard.component.html | 2 +- frontend/src/locale/messages.xlf | 30 +++++-------------- 4 files changed, 10 insertions(+), 30 deletions(-) diff --git a/frontend/src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.ts b/frontend/src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.ts index bdfd22e1f..766e7f090 100644 --- a/frontend/src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.ts +++ b/frontend/src/app/lightning/nodes-ranking/top-nodes-per-capacity/top-nodes-per-capacity.component.ts @@ -26,7 +26,7 @@ export class TopNodesPerCapacity implements OnInit { ngOnInit(): void { if (!this.widget) { - this.seoService.setTitle($localize`Liquidity Ranking`); + this.seoService.setTitle($localize`:@@2d9883d230a47fbbb2ec969e32a186597ea27405:Liquidity Ranking`); } for (let i = 1; i <= (this.widget ? (isMobile() ? 8 : 7) : 100); ++i) { diff --git a/frontend/src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.ts b/frontend/src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.ts index 719a69663..2c88e4bae 100644 --- a/frontend/src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.ts +++ b/frontend/src/app/lightning/nodes-ranking/top-nodes-per-channels/top-nodes-per-channels.component.ts @@ -1,7 +1,6 @@ import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; import { map, Observable } from 'rxjs'; import { INodesRanking, ITopNodesPerChannels } from '../../../interfaces/node-api.interface'; -import { SeoService } from '../../../services/seo.service'; import { isMobile } from '../../../shared/common.utils'; import { GeolocationData } from '../../../shared/components/geolocation/geolocation.component'; import { LightningApiService } from '../../lightning-api.service'; @@ -21,14 +20,9 @@ export class TopNodesPerChannels implements OnInit { constructor( private apiService: LightningApiService, - private seoService: SeoService ) {} ngOnInit(): void { - if (!this.widget) { - this.seoService.setTitle($localize`Connectivity Ranking`); - } - for (let i = 1; i <= (this.widget ? (isMobile() ? 8 : 7) : 100); ++i) { this.skeletonRows.push(i); } diff --git a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html index 97802a1d9..9d81cf3c2 100644 --- a/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html +++ b/frontend/src/app/lightning/nodes-rankings-dashboard/nodes-rankings-dashboard.component.html @@ -19,7 +19,7 @@