소스 검색

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

Martin Filser 2 년 전
부모
커밋
a7721b9048
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/lib/cardSearch.js

+ 1 - 1
client/lib/cardSearch.js

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