Merge pull request #4986 from mfilser/global_search_found_cards_count_is_now_substituted_by_the_translation_function_itself

Global search, found cards count is now substituted by the translation function itself
This commit is contained in:
Lauri Ojansivu 2023-06-28 16:13:17 -04:00 committed by GitHub
commit c7ee585a62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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', {