clock i18n
This commit is contained in:
		
							parent
							
								
									d3a7950e78
								
							
						
					
					
						commit
						056d61a28d
					
				| @ -32,31 +32,34 @@ | ||||
|     </app-clock-face> | ||||
|   </div> | ||||
|   <div class="stats top left"> | ||||
|     <p>fiat price</p> | ||||
|     <p i18n="clock.fiat-price">fiat price</p> | ||||
|     <p> | ||||
|       <app-fiat [value]="100000000" digitsInfo="1.2-2" colorClass="white-color"></app-fiat> | ||||
|     </p> | ||||
|   </div> | ||||
|   <div class="stats top right"> | ||||
|     <p>priority rate</p> | ||||
|     <p *ngIf="recommendedFees$ | async as recommendedFees;">{{ recommendedFees.fastestFee }} sat/vB</p> | ||||
|     <p i18n="clock.priority-rate|priority fee rate">priority rate</p> | ||||
|     <p *ngIf="recommendedFees$ | async as recommendedFees;" i18n="shared.sat-vbyte|sat/vB">{{ recommendedFees.fastestFee }} sat/vB</p> | ||||
|   </div> | ||||
|   <div *ngIf="mode !== 'mempool'" class="stats bottom left"> | ||||
|     <p [innerHTML]="block.size | bytes: 2"></p> | ||||
|     <p>block size</p> | ||||
|     <p i18n="clock.block-size">block size</p> | ||||
|   </div> | ||||
|   <div *ngIf="mode !== 'mempool'" class="stats bottom right"> | ||||
|     <p>{{ block.tx_count | number }}</p> | ||||
|     <p class="label">transactions</p> | ||||
|     <p class="force-wrap"> | ||||
|       <ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container> | ||||
|       <ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template> | ||||
|       <ng-template #transactionsPlural let-i i18n="shared.transaction-count.plural">{{ i }} transactions</ng-template> | ||||
|     </p> | ||||
|   </div> | ||||
|   <ng-container *ngIf="mempoolInfo$ | async as mempoolInfo;"> | ||||
|     <div *ngIf="mode === 'mempool'" class="stats bottom left"> | ||||
|       <p [innerHTML]="mempoolInfo.usage | bytes: 0"></p> | ||||
|       <p>memory usage</p> | ||||
|       <p i18n="dashboard.memory-usage|Memory usage">memory usage</p> | ||||
|     </div> | ||||
|     <div *ngIf="mode === 'mempool'" class="stats bottom right"> | ||||
|       <p>{{ mempoolInfo.size | number }}</p> | ||||
|       <p class="label">unconfirmed</p> | ||||
|       <p i18n="dashboard.unconfirmed|Unconfirmed count">unconfirmed</p> | ||||
|     </div> | ||||
|   </ng-container> | ||||
| </div> | ||||
| @ -49,6 +49,10 @@ | ||||
|       line-height: calc(0.07 * var(--clock-width)); | ||||
|       opacity: 0.8; | ||||
| 
 | ||||
|       &.force-wrap { | ||||
|         word-spacing: 1000px; | ||||
|       } | ||||
| 
 | ||||
|       ::ng-deep .symbol { | ||||
|         font-size: inherit; | ||||
|         color: white; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user