Adding missing i18n strings on Bisq.

This commit is contained in:
softsimon 2021-06-09 14:09:25 -05:00
parent 861344ed6d
commit 0087700aa5
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
4 changed files with 10 additions and 2 deletions

View File

@ -33,7 +33,7 @@
<td>{{ stats.spent_txos | number }}</td> <td>{{ stats.spent_txos | number }}</td>
</tr> </tr>
<tr> <tr>
<td i1r8n="BSQ token price">Price</td> <td i18n>Price</td>
<td><app-fiat [value]="price"></app-fiat></td> <td><app-fiat [value]="price"></app-fiat></td>
</tr> </tr>
<tr> <tr>

View File

@ -26,7 +26,7 @@
<td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | slice : 0 : 8 }}</a></td> <td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | slice : 0 : 8 }}</a></td>
<td class="d-none d-md-block"> <td class="d-none d-md-block">
<app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> <app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon>
<span class="d-none d-md-inline"> {{ tx.txTypeDisplayString }}</span> <span class="d-none d-md-inline"> {{ getStringByTxType(tx.txType) }}</span>
</td> </td>
<td> <td>
<app-bisq-icon class="d-inline d-md-none mr-1" [txType]="tx.txType"></app-bisq-icon> <app-bisq-icon class="d-inline d-md-none mr-1" [txType]="tx.txType"></app-bisq-icon>

View File

@ -160,6 +160,10 @@ export class BisqTransactionsComponent implements OnInit {
return outputs.reduce((acc: number, output: BisqOutput) => acc + output.bsqAmount, 0); return outputs.reduce((acc: number, output: BisqOutput) => acc + output.bsqAmount, 0);
} }
getStringByTxType(id: string) {
return this.txTypeOptions.find((type) => type.id).name;
}
trackByFn(index: number) { trackByFn(index: number) {
return index; return index;
} }

View File

@ -658,6 +658,10 @@
<context context-type="sourcefile">src/app/bisq/bisq-market/bisq-market.component.html</context> <context context-type="sourcefile">src/app/bisq/bisq-market/bisq-market.component.html</context>
<context context-type="linenumber">79,80</context> <context context-type="linenumber">79,80</context>
</context-group> </context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/bisq/bisq-stats/bisq-stats.component.html</context>
<context context-type="linenumber">36</context>
</context-group>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/bisq/bisq-stats/bisq-stats.component.html</context> <context context-type="sourcefile">src/app/bisq/bisq-stats/bisq-stats.component.html</context>
<context context-type="linenumber">78</context> <context context-type="linenumber">78</context>