Add localize strings at echarts tooltip.

This commit is contained in:
Miguel Medeiros 2021-10-31 11:23:33 -03:00
parent b81d296635
commit 8a0316a562
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -241,6 +241,9 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
</tr>`);
});
const classActive = (this.template === 'advanced') ? 'fees-wrapper-tooltip-chart-advanced' : '';
const titleRange = $localize`Range`;
const titleSize = $localize`Size`;
const titleSum = $localize`Sum`;
return `<div class="fees-wrapper-tooltip-chart ${classActive}">
<div class="title">
${params[0].axisValue}
@ -251,9 +254,9 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
<table>
<thead>
<tr>
<th>Range</th>
<th>Size</th>
<th>Sum</th>
<th>${titleRange}</th>
<th>${titleSize}</th>
<th>${titleSum}</th>
<th></th>
</tr>
</thead>