i18n fixes

This commit is contained in:
softsimon 2024-07-02 15:15:59 +09:00
parent e5d23e8076
commit d00f4245f8
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 61 additions and 22 deletions

View File

@ -73,7 +73,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<ng-container *ngIf="(etaInfo$ | async) as etaInfo; else loadingEstimate"> <ng-container *ngIf="(etaInfo$ | async) as etaInfo; else loadingEstimate">
<small class="form-text checkout-text mb-2" i18n="accelerator.hashrate-percentage-description">Your transaction will be prioritized by up to <strong>{{ etaInfo.hashratePercentage | number : '1.1-1' }}%</strong> of miners.</small> <small class="form-text checkout-text mb-2"><ng-container *ngTemplateOutlet="prioritizedBy; context: {$implicit:etaInfo.hashratePercentage}"></ng-container></small>
<small class="form-text checkout-text mb-2" i18n="accelerator.time-estimate-description">This will reduce your expected waiting time until the first confirmation to <strong><app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time></strong></small> <small class="form-text checkout-text mb-2" i18n="accelerator.time-estimate-description">This will reduce your expected waiting time until the first confirmation to <strong><app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time></strong></small>
</ng-container> </ng-container>
</div> </div>
@ -289,7 +289,7 @@
<label class="form-check-label d-flex flex-column" for="wait"> <label class="form-check-label d-flex flex-column" for="wait">
<span class="font-weight-bold">Wait</span> <span class="font-weight-bold">Wait</span>
@if (eta.blocks < 7) { @if (eta.blocks < 7) {
<span class="checkout-text">Confirmation expected <app-time kind="within" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time></span> <span class="checkout-text" i18n="accelerator.confirmation-expected">Confirmation expected <app-time kind="within" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time></span>
} @else { } @else {
<span class="checkout-text"> <span class="checkout-text">
<span i18n="accelerator.confirmation-expected-within-hours">Confirmation expected within several hours</span> <span i18n="accelerator.confirmation-expected-within-hours">Confirmation expected within several hours</span>
@ -322,7 +322,7 @@
</div> </div>
</div> </div>
<div class="pie d-none d-lg-flex"> <div class="pie d-none d-lg-flex">
<small class="form-text checkout-text mb-2" i18n="accelerator.hashrate-percentage-description">Your transaction will be prioritized by up to {{ etaInfo.hashratePercentage | number : '1.1-1' }}% of miners.</small> <small class="form-text checkout-text mb-2"><ng-container *ngTemplateOutlet="prioritizedBy; context: {$implicit:etaInfo.hashratePercentage}"></ng-container></small>
<app-active-acceleration-box [miningStats]="miningStats" [pools]="estimate.pools" [chartOnly]="true"></app-active-acceleration-box> <app-active-acceleration-box [miningStats]="miningStats" [pools]="estimate.pools" [chartOnly]="true"></app-active-acceleration-box>
</div> </div>
<ng-container *ngTemplateOutlet="accelerateButton"></ng-container> <ng-container *ngTemplateOutlet="accelerateButton"></ng-container>
@ -347,24 +347,24 @@
<span><ng-container *ngTemplateOutlet="accelerateTo; context: {$implicit:(userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize}"></ng-container></span> <span><ng-container *ngTemplateOutlet="accelerateTo; context: {$implicit:(userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize}"></ng-container></span>
<span class="checkout-text"> <span class="checkout-text">
@if (!calculating) { @if (!calculating) {
For an additional <app-fiat [value]="cost"></app-fiat> (<span><small style="font-family: monospace;">{{ cost | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span>) <ng-container i18n="accelerator.for-an-additional-cost">For an additional</ng-container> <app-fiat [value]="cost"></app-fiat> (<span><small style="font-family: monospace;">{{ cost | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span>)
} @else { } @else {
<span class="estimating">Calculating cost...</span> <span class="estimating">Calculating cost...</span>
} }
</span> </span>
<span class="checkout-text" *ngIf="(etaInfo$ | async) as etaInfo"> <span class="checkout-text" *ngIf="(etaInfo$ | async) as etaInfo">
Reducing expected confirmation time to <app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time> <ng-container i18n="accelerator.reducing-expected-confirmation-time">Reducing expected confirmation time to <app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time></ng-container>
</span> </span>
</div> </div>
</div> </div>
<div class="col-md pie d-none d-md-flex" *ngIf="!forceMobile"> <div class="col-md pie d-none d-md-flex" *ngIf="!forceMobile">
<small class="form-text checkout-text mb-2" i18n="accelerator.hashrate-percentage-description" *ngIf="(etaInfo$ | async) as etaInfo">Your transaction will be prioritized by up to {{ etaInfo.hashratePercentage | number : '1.1-1' }}% of miners.</small> <small class="form-text checkout-text mb-2" i18n="accelerator.hashrate-percentage-description" *ngIf="(etaInfo$ | async) as etaInfo"><ng-container *ngTemplateOutlet="prioritizedBy; context: {$implicit:etaInfo.hashratePercentage}"></ng-container></small>
<app-active-acceleration-box [miningStats]="miningStats" [pools]="estimate.pools" [chartOnly]="true"></app-active-acceleration-box> <app-active-acceleration-box [miningStats]="miningStats" [pools]="estimate.pools" [chartOnly]="true"></app-active-acceleration-box>
</div> </div>
</div> </div>
<div class="payment-area mt-2 p-2" [class.disabled]="error || showSuccess" style="font-size: 14px;"> <div class="payment-area mt-2 p-2" [class.disabled]="error || showSuccess" style="font-size: 14px;">
<div class="row text-center justify-content-center mx-2"> <div class="row text-center justify-content-center mx-2">
<p>Payment to mempool.space for acceleration of txid <a [routerLink]="'/tx/' + tx.txid" target="_blank"> {{ tx.txid.substr(0, 10) }}..{{ tx.txid.substr(-10) }}</a></p> <p i18n="accelerator.payment-to-mempool-space">Payment to mempool.space for acceleration of txid <a [routerLink]="'/tx/' + tx.txid" target="_blank">{{ tx.txid.substr(0, 10) }}..{{ tx.txid.substr(-10) }}</a></p>
</div> </div>
@if (canPayWithBalance || !(canPayWithBitcoin || canPayWithCashapp)) { @if (canPayWithBalance || !(canPayWithBitcoin || canPayWithCashapp)) {
<div class="row"> <div class="row">
@ -383,7 +383,7 @@
<p>Pay <span><small style="font-family: monospace;">{{ ((invoice.btcDue * 100_000_000) || cost) | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span></p> <p>Pay <span><small style="font-family: monospace;">{{ ((invoice.btcDue * 100_000_000) || cost) | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span></p>
<app-bitcoin-invoice style="width: 100%;" [invoice]="invoice" [invoiceId]="invoice.id" [minimal]="true" (completed)="bitcoinPaymentCompleted()"></app-bitcoin-invoice> <app-bitcoin-invoice style="width: 100%;" [invoice]="invoice" [invoiceId]="invoice.id" [minimal]="true" (completed)="bitcoinPaymentCompleted()"></app-bitcoin-invoice>
} @else { } @else {
<p>Loading invoice...</p> <p i18n="accelerator.loading-invoice">Loading invoice...</p>
<div class="d-flex align-items-center justify-content-center" style="width: 100%; height: 292px;"> <div class="d-flex align-items-center justify-content-center" style="width: 100%; height: 292px;">
<div class="m-4 spinner-border text-light" style="width: 25px; height: 25px"></div> <div class="m-4 spinner-border text-light" style="width: 25px; height: 25px"></div>
</div> </div>
@ -516,7 +516,7 @@
<span><ng-container *ngTemplateOutlet="accelerateTo; context: {$implicit:(userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize}"></ng-container> <ng-container *ngTemplateOutlet="customizeButton"></ng-container></span> <span><ng-container *ngTemplateOutlet="accelerateTo; context: {$implicit:(userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize}"></ng-container> <ng-container *ngTemplateOutlet="customizeButton"></ng-container></span>
<span class="checkout-text">Confirmation expected <app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time><br> <span class="checkout-text">Confirmation expected <app-time kind="within" [time]="etaInfo.acceleratedETA" [fastRender]="false" [fixedRender]="true"></app-time><br>
@if (!calculating) { @if (!calculating) {
<app-fiat [value]="cost"></app-fiat>fee (<span><small style="font-family: monospace;">{{ cost | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span>) <app-fiat [value]="cost"></app-fiat> (<span><small style="font-family: monospace;">{{ cost | number }}</small>&nbsp;<span class="symbol" i18n="shared.sats">sats</span></span>)
} @else { } @else {
<span class="estimating" i18n="accelerator.calculating-cost">Calculating cost...</span> <span class="estimating" i18n="accelerator.calculating-cost">Calculating cost...</span>
} }
@ -555,4 +555,6 @@
<span>Coming soon</span> <span>Coming soon</span>
</button> </button>
} }
</ng-template> </ng-template>
<ng-template #prioritizedBy let-i i18n="accelerator.hashrate-percentage-description">Your transaction will be prioritized by up to <strong>{{ i | number : '1.1-1' }}%</strong> of miners.</ng-template>

View File

@ -558,14 +558,6 @@
</context-group> </context-group>
<note priority="1" from="description">accelerator.how-much-faster</note> <note priority="1" from="description">accelerator.how-much-faster</note>
</trans-unit> </trans-unit>
<trans-unit id="d5e02d655834140c67217985af30b22b4b831aa8" datatype="html">
<source>Your transaction will be prioritized by up to <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/><x id="INTERPOLATION" equiv-text="rcentage | number : &apos;1.1-1&apos; }}"/>%<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/> of miners.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">76</context>
</context-group>
<note priority="1" from="description">accelerator.hashrate-percentage-description</note>
</trans-unit>
<trans-unit id="d1a62bdb732f1efbfdc8af6fbb4349b89015b5e5" datatype="html"> <trans-unit id="d1a62bdb732f1efbfdc8af6fbb4349b89015b5e5" datatype="html">
<source>This will reduce your expected waiting time until the first confirmation to <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/><x id="START_TAG_APP_TIME" ctype="x-app_time" equiv-text="n&quot; [time]=&quot;etaInfo.acceleratedETA&quot; [fastRender]=&quot;false&quot; [fixedRender]=&quot;true&quot;&gt;"/><x id="CLOSE_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;/strong&gt;&lt;/s"/><x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/small&gt;"/></source> <source>This will reduce your expected waiting time until the first confirmation to <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/><x id="START_TAG_APP_TIME" ctype="x-app_time" equiv-text="n&quot; [time]=&quot;etaInfo.acceleratedETA&quot; [fastRender]=&quot;false&quot; [fixedRender]=&quot;true&quot;&gt;"/><x id="CLOSE_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;/strong&gt;&lt;/s"/><x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/small&gt;"/></source>
<context-group purpose="location"> <context-group purpose="location">
@ -699,6 +691,14 @@
</context-group> </context-group>
<note priority="1" from="description">accelerator.accelerate-your-transaction</note> <note priority="1" from="description">accelerator.accelerate-your-transaction</note>
</trans-unit> </trans-unit>
<trans-unit id="8537f3e6139e9066da8f697e874ded8fcb71d9c4" datatype="html">
<source>Confirmation expected <x id="START_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;app-time kind=&quot;within&quot; [time]=&quot;eta.time&quot; [fastRender]=&quot;false&quot; [fixedRender]=&quot;true&quot;&gt;"/><x id="CLOSE_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;/span&gt;"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">292,293</context>
</context-group>
<note priority="1" from="description">accelerator.confirmation-expected</note>
</trans-unit>
<trans-unit id="3f27230dc33770f71a7b0d9249c3c712b116b582" datatype="html"> <trans-unit id="3f27230dc33770f71a7b0d9249c3c712b116b582" datatype="html">
<source>Confirmation expected within several hours</source> <source>Confirmation expected within several hours</source>
<context-group purpose="location"> <context-group purpose="location">
@ -707,18 +707,47 @@
</context-group> </context-group>
<note priority="1" from="description">accelerator.confirmation-expected-within-hours</note> <note priority="1" from="description">accelerator.confirmation-expected-within-hours</note>
</trans-unit> </trans-unit>
<trans-unit id="d1a7c51db4237fc7799b1c104283ec5202f03c7d" datatype="html"> <trans-unit id="fd1ab7f68416a5ce64f04f588c8b808d7bba9624" datatype="html">
<source>Your transaction will be prioritized by up to <x id="INTERPOLATION" equiv-text="{{ etaInfo.hashratePercentage | number : &apos;1.1-1&apos; }}"/>% of miners.</source> <source>For an additional</source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context> <context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">325</context> <context context-type="linenumber">350</context>
</context-group> </context-group>
<note priority="1" from="description">accelerator.for-an-additional-cost</note>
</trans-unit>
<trans-unit id="b0cd496dc7758e691f57213379a47f0a043010ac" datatype="html">
<source>Reducing expected confirmation time to <x id="START_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;app-time kind=&quot;within&quot; [time]=&quot;etaInfo.acceleratedETA&quot; [fastRender]=&quot;false&quot; [fixedRender]=&quot;true&quot;&gt;"/><x id="CLOSE_TAG_APP_TIME" ctype="x-app_time" equiv-text="&lt;/ng-contain"/></source>
<context-group purpose="location"> <context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context> <context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">361</context> <context context-type="linenumber">356,357</context>
</context-group>
<note priority="1" from="description">accelerator.reducing-expected-confirmation-time</note>
</trans-unit>
<trans-unit id="4540d059d33541229fb7fbdae17bfa16c47d49d3" datatype="html">
<source><x id="START_TAG_NG_CONTAINER" ctype="x-ng_container" equiv-text="&lt;/ng-contain"/><x id="CLOSE_TAG_NG_CONTAINER" ctype="x-ng_container" equiv-text="&lt;/small&gt;"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">361,362</context>
</context-group> </context-group>
<note priority="1" from="description">accelerator.hashrate-percentage-description</note> <note priority="1" from="description">accelerator.hashrate-percentage-description</note>
</trans-unit> </trans-unit>
<trans-unit id="b62e50ad8bdbb107a2ec978648faf36e9f91c3c1" datatype="html">
<source>Payment to mempool.space for acceleration of txid <x id="START_LINK" ctype="x-a" equiv-text="&lt;a [routerLink]=&quot;&apos;/tx/&apos; + tx.txid&quot; target=&quot;_blank&quot;&gt;"/><x id="INTERPOLATION" equiv-text="tr(0, 10) }}"/>..<x id="INTERPOLATION_1" equiv-text="{{ tx.txid.substr(-10) }}"/><x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/p&gt;
&lt;/d"/></source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">367,368</context>
</context-group>
<note priority="1" from="description">accelerator.payment-to-mempool-space</note>
</trans-unit>
<trans-unit id="13eacf4307fbadcc4ba552641200cdc36997a62c" datatype="html">
<source>Loading invoice...</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">386</context>
</context-group>
<note priority="1" from="description">accelerator.loading-invoice</note>
</trans-unit>
<trans-unit id="63f5d0ec23e3cf4abf6d5221107633c90d8d4a15" datatype="html"> <trans-unit id="63f5d0ec23e3cf4abf6d5221107633c90d8d4a15" datatype="html">
<source>OR</source> <source>OR</source>
<context-group purpose="location"> <context-group purpose="location">
@ -781,6 +810,14 @@
<note priority="1" from="description">Pay button label</note> <note priority="1" from="description">Pay button label</note>
<note priority="1" from="meaning">transaction.pay</note> <note priority="1" from="meaning">transaction.pay</note>
</trans-unit> </trans-unit>
<trans-unit id="cae178cb66733552da9e3baefc1949a18af63ee0" datatype="html">
<source>Your transaction will be prioritized by up to <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/><x id="INTERPOLATION" equiv-text="1&apos; }}"/>%<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/> of miners.</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/accelerate-checkout/accelerate-checkout.component.html</context>
<context context-type="linenumber">560</context>
</context-group>
<note priority="1" from="description">accelerator.hashrate-percentage-description</note>
</trans-unit>
<trans-unit id="83b8b9dd1ed416447cf8438460a37b0ddeb2677c" datatype="html"> <trans-unit id="83b8b9dd1ed416447cf8438460a37b0ddeb2677c" datatype="html">
<source>sat</source> <source>sat</source>
<context-group purpose="location"> <context-group purpose="location">