Lightning pie chart i18n tooltip fix
This commit is contained in:
		
							parent
							
								
									78b3bd205e
								
							
						
					
					
						commit
						3a322bb752
					
				@ -100,7 +100,7 @@ export class NodesPerCountryChartComponent implements OnInit {
 | 
				
			|||||||
          borderColor: '#000',
 | 
					          borderColor: '#000',
 | 
				
			||||||
          formatter: () => {
 | 
					          formatter: () => {
 | 
				
			||||||
            return `<b style="color: white">${country.name.en} (${country.share}%)</b><br>` +
 | 
					            return `<b style="color: white">${country.name.en} (${country.share}%)</b><br>` +
 | 
				
			||||||
              $localize`${country.count.toString()} nodes<br>` +
 | 
					              $localize`${country.count.toString()} nodes` + `<br>` +
 | 
				
			||||||
              $localize`${this.amountShortenerPipe.transform(country.capacity / 100000000, 2)} BTC capacity`
 | 
					              $localize`${this.amountShortenerPipe.transform(country.capacity / 100000000, 2)} BTC capacity`
 | 
				
			||||||
            ;
 | 
					            ;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
				
			|||||||
@ -154,7 +154,7 @@ export class NodesPerISPChartComponent implements OnInit {
 | 
				
			|||||||
          borderColor: '#000',
 | 
					          borderColor: '#000',
 | 
				
			||||||
          formatter: () => {
 | 
					          formatter: () => {
 | 
				
			||||||
            return `<b style="color: white">${isp[1]} (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)</b><br>` +
 | 
					            return `<b style="color: white">${isp[1]} (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)</b><br>` +
 | 
				
			||||||
              $localize`${isp[4].toString()} nodes<br>` +
 | 
					              $localize`${isp[4].toString()} nodes` + `<br>` +
 | 
				
			||||||
              $localize`${this.amountShortenerPipe.transform(isp[2] / 100000000, 2)} BTC`
 | 
					              $localize`${this.amountShortenerPipe.transform(isp[2] / 100000000, 2)} BTC`
 | 
				
			||||||
            ;
 | 
					            ;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
@ -186,7 +186,7 @@ export class NodesPerISPChartComponent implements OnInit {
 | 
				
			|||||||
        borderColor: '#000',
 | 
					        borderColor: '#000',
 | 
				
			||||||
        formatter: () => {
 | 
					        formatter: () => {
 | 
				
			||||||
          return `<b style="color: white">Other (${totalShareOther.toFixed(2)}%)</b><br>` +
 | 
					          return `<b style="color: white">Other (${totalShareOther.toFixed(2)}%)</b><br>` +
 | 
				
			||||||
            $localize`${nodeCountOther.toString()} nodes<br>` +
 | 
					            $localize`${nodeCountOther.toString()} nodes` + `<br>` +
 | 
				
			||||||
            $localize`${this.amountShortenerPipe.transform(capacityOther / 100000000, 2)} BTC`;
 | 
					            $localize`${this.amountShortenerPipe.transform(capacityOther / 100000000, 2)} BTC`;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 | 
				
			|||||||
@ -5734,8 +5734,8 @@
 | 
				
			|||||||
        </context-group>
 | 
					        </context-group>
 | 
				
			||||||
        <note priority="1" from="description">lightning.share</note>
 | 
					        <note priority="1" from="description">lightning.share</note>
 | 
				
			||||||
      </trans-unit>
 | 
					      </trans-unit>
 | 
				
			||||||
      <trans-unit id="2471311169194286547" datatype="html">
 | 
					      <trans-unit id="5222540403093176126" datatype="html">
 | 
				
			||||||
        <source><x id="PH" equiv-text="country.count.toString()"/> nodes<br></source>
 | 
					        <source><x id="PH" equiv-text="country.count.toString()"/> nodes</source>
 | 
				
			||||||
        <context-group purpose="location">
 | 
					        <context-group purpose="location">
 | 
				
			||||||
          <context context-type="sourcefile">src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts</context>
 | 
					          <context context-type="sourcefile">src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts</context>
 | 
				
			||||||
          <context context-type="linenumber">103,102</context>
 | 
					          <context context-type="linenumber">103,102</context>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user