localize other displayed numbers

This commit is contained in:
Danny Coates 2018-02-07 19:46:18 -08:00
parent a777a808ee
commit cf36a33aea
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 17 additions and 2 deletions

View file

@ -1,5 +1,6 @@
const html = require('choo/html');
const assets = require('../../common/assets');
const number = require('../utils').number;
function timeLeft(milliseconds, state) {
const minutes = Math.floor(milliseconds / 1000 / 60);
@ -40,7 +41,9 @@ module.exports = function(file, state, emit) {
</span>
</td>
<td class="overflow-col">${remainingTime}</td>
<td class="center-col">${totalDownloads} / ${downloadLimit}</td>
<td class="center-col">${number(totalDownloads)} / ${number(
downloadLimit
)}</td>
<td class="center-col">
<img
onclick=${showPopup}