mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
localize other displayed numbers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const html = require('choo/html');
|
||||
const number = require('../utils').number;
|
||||
|
||||
module.exports = function(selected, options, translate, changed) {
|
||||
const id = `select-${Math.random()}`;
|
||||
@@ -47,7 +48,9 @@ module.exports = function(selected, options, translate, changed) {
|
||||
<ul id="${id}" class="selectOptions">
|
||||
${options.map(
|
||||
i =>
|
||||
html`<li class="selectOption" onclick=${choose} data-value="${i}">${i}</li>`
|
||||
html`<li class="selectOption" onclick=${choose} data-value="${i}">${number(
|
||||
i
|
||||
)}</li>`
|
||||
)}
|
||||
</ul>
|
||||
</div>`;
|
||||
|
||||
Reference in New Issue
Block a user