Merge pull request #478 from mempool/simon/address-page-error-localization

Localize electrum limit error.
This commit is contained in:
wiz
2021-05-06 23:04:01 +09:00
committed by GitHub
2 changed files with 17 additions and 6 deletions

View File

@@ -116,10 +116,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>