Global search, found cards count is now substituted by the translation function itself

This commit is contained in:
Martin Filser 2023-04-18 08:26:37 +02:00
parent 184fd3abdd
commit a7721b9048

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').replace('%s', this.resultsCount);
return TAPi18n.__('n-cards-found', {sprintf: [this.resultsCount]});
}
return TAPi18n.__('n-n-of-n-cards-found', {