diff --git a/components/Stats/index.js b/components/Stats/index.js index 2c5a7b85a0..5422754cd3 100644 --- a/components/Stats/index.js +++ b/components/Stats/index.js @@ -7,6 +7,7 @@ class Stats extends React.Component { var template = this.props.template; var data = { nbHits: this.props.nbHits, + isPlural: this.props.nbHits > 1, processingTimeMS: this.props.processingTimeMS }; diff --git a/widgets/stats/template.html b/widgets/stats/template.html index 8d182ebaf7..668468a091 100644 --- a/widgets/stats/template.html +++ b/widgets/stats/template.html @@ -1,4 +1,4 @@
- {{nbHits}} results + {{nbHits}} {{#isPlural}}results{{/isPlural}}{{^isPlural}}result{{/isPlural}} found in {{processingTimeMS}}ms