Merge pull request #3138 from mempool/simon/fix-duplicate-i18n-string-11

Fix for duplicate i18n strings
This commit is contained in:
softsimon 2023-02-25 14:28:32 +04:00 committed by GitHub
commit a721761d49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 23 deletions

View file

@ -43,10 +43,8 @@
<div [attr.data-cy]="'bitcoin-block-' + i + '-transactions'" class="transaction-count">
<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>
<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>
</div>
<div [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-time'" class="time-difference">
<app-time-since [time]="block.timestamp" [fastRender]="true"></app-time-since></div>

View file

@ -325,6 +325,10 @@
<context context-type="sourcefile">src/app/components/block/block.component.html</context>
<context context-type="linenumber">310,311</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/blockchain-blocks/blockchain-blocks.component.html</context>
<context context-type="linenumber">46,47</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/mempool-blocks/mempool-blocks.component.html</context>
<context context-type="linenumber">21,22</context>
@ -345,6 +349,10 @@
<context context-type="sourcefile">src/app/components/block/block.component.html</context>
<context context-type="linenumber">311,312</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/blockchain-blocks/blockchain-blocks.component.html</context>
<context context-type="linenumber">47,48</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/mempool-blocks/mempool-blocks.component.html</context>
<context context-type="linenumber">22,23</context>
@ -2747,25 +2755,6 @@
</context-group>
<note priority="1" from="description">block.empty-block-explanation</note>
</trans-unit>
<trans-unit id="9ad9918c6f76f1a93cfaafc087583db8baf07a4f" datatype="html">
<source><x id="INTERPOLATION" equiv-text="transaction&lt;/ng-template&gt;
&lt;ng-template #transactionsPlural let-i i18n=&quot;sha"/> transaction</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/blockchain-blocks/blockchain-blocks.component.html</context>
<context context-type="linenumber">47</context>
</context-group>
<note priority="1" from="description">shared.transaction-count.singular</note>
</trans-unit>
<trans-unit id="a831c45d74e3d1a7c69872bbd7f813ace6a9ec41" datatype="html">
<source><x id="INTERPOLATION" equiv-text="transactions&lt;/ng-template&gt;
&lt;/div&gt;
&lt;div [attr.data-cy]=&quot;&apos;bitcoin-"/> transactions</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/blockchain-blocks/blockchain-blocks.component.html</context>
<context context-type="linenumber">49</context>
</context-group>
<note priority="1" from="description">shared.transaction-count.plural</note>
</trans-unit>
<trans-unit id="e70fcca5a99575cffef3ff8cbd5e69f06ffd0f1c" datatype="html">
<source>Pool</source>
<context-group purpose="location">