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