Localize electrum limit error.

fixes #442
This commit is contained in:
softsimon
2021-04-27 14:21:33 +04:00
parent 2d19d21532
commit 0d76a2d111
2 changed files with 17 additions and 6 deletions

View File

@@ -114,10 +114,13 @@
<div class="text-center">
<span i18n="address.error.loading-address-data">Error loading address data.</span>
<br>
<i>{{ error.error }}</i>
<ng-template [ngIf]="error.status === 413 || error.status === 405">
<br><br>
Consider viewing this address on the official Mempool website instead:
<ng-template #displayServerError><i>{{ error.error }}</i></ng-template>
<ng-template [ngIf]="error.status === 413 || error.status === 405" [ngIfElse]="displayServerError">
<ng-container i18n="Electrum server limit exceeded error">
<i>The number of transactions on this address exceeds the Electrum server limit</i>
<br><br>
Consider viewing this address on the official Mempool website instead:
</ng-container>
<br>
<a href="https://mempool.space/address/{{ addressString }}" target="_blank">https://mempool.space/address/{{ addressString }}</a>
<br>