Fixed count of found cards in Global Search.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2023-04-18 00:21:34 +03:00
parent 0defe76fe3
commit 9af03b0416

View file

@ -168,7 +168,7 @@ export class CardSearchPagedComponent extends BlazeComponent {
} else if (this.resultsCount === 1) {
return TAPi18n.__('one-card-found');
} else if (this.resultsCount === this.totalHits) {
return TAPi18n.__('n-cards-found', this.resultsCount);
return TAPi18n.__('n-cards-found').replace('%s', this.resultsCount);
}
return TAPi18n.__('n-n-of-n-cards-found', {