Fixing the other i18n

This commit is contained in:
softsimon
2024-04-04 21:55:14 +09:00
parent 8ac71f21d1
commit 25bb942e04
2 changed files with 19 additions and 18 deletions

View File

@@ -175,13 +175,15 @@ export class PoolRankingComponent implements OnInit {
} as PieSeriesOption);
});
const percentage = totalShareOther.toFixed(2) + '%';
// 'Other'
data.push({
itemStyle: {
color: '#6b6b6b',
},
value: totalShareOther,
name: $localize`Other (${totalShareOther.toFixed(2) + '%'})`,
name: $localize`Other (${percentage})`,
label: {
overflow: 'none',
color: '#b1b1b1',
@@ -197,7 +199,6 @@ export class PoolRankingComponent implements OnInit {
},
borderColor: '#000',
formatter: () => {
const percentage = totalShareOther.toFixed(2) + '%';
const i = totalBlockOther.toString();
if (this.miningWindowPreference === '24h') {
return `<b style="color: white">` + $localize`Other (${percentage})` + `</b><br>` +