<%= __(`Contribute and share {{ hostname }} on`, { hostname: baseUrl }) %>
- <%- include('partials/share', { amount: numberWithSpaces(aggregated.numberOfReports) }) -%> + <%- include('partials/share', { amount: formatNumber(aggregated.numberOfReports) }) -%>- <%= __(`In total`) %> <%= numberWithSpaces(totalInfectedPeopleWithSymptoms) %> - <%= __(`people have reported that they have tested positive for COVID-19 and + <%= __(`In total`) %> <%= formatNumber(totalInfectedPeopleWithSymptoms) %> <%= + __(`people have reported that they have tested positive for COVID-19 and experience symptoms.`) %>
@@ -43,8 +42,8 @@ x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "); } %>- <%= __(`In total`) %> <%= numberWithSpaces(totalTested) %> <%= __(`people - have reported that they have been tested for COVID-19.`) %> + <%= __(`In total`) %> <%= formatNumber(totalTested) %> <%= __(`people have + reported that they have been tested for COVID-19.`) %>
- <%= __(`In total`) %> <%= numberWithSpaces(totalPeopleInContactWithInfected) - %> <%= __(`people have reported that they have been in close contact with a + <%= __(`In total`) %> <%= formatNumber(totalPeopleInContactWithInfected) %> + <%= __(`people have reported that they have been in close contact with a person who was tested positive for COVID-19.`) %>
@@ -102,7 +101,7 @@ x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "); } %> <%= __(`All submissions`) %>- <%= __("In total") %> <%= numberWithSpaces(totalPeopleWithSymptoms) %> <%= + <%= __("In total") %> <%= formatNumber(totalPeopleWithSymptoms) %> <%= __(`people have reported that they experience symptoms.`) %>
diff --git a/app/views/pages/thank-you.ejs b/app/views/pages/thank-you.ejs index ed9985b2..3ed03e17 100644 --- a/app/views/pages/thank-you.ejs +++ b/app/views/pages/thank-you.ejs @@ -1,6 +1,4 @@ -<% const numberWithSpaces = x => x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, -locals.thousandSeparator || ' '); const amount = -numberWithSpaces(aggregated.numberOfReports) %> +<% const amount = locals.formatNumber(aggregated.numberOfReports) %> <%- include('partials/header') -%>