File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,7 @@ export default {
66
66
window .location .search = newSearch .length ? ` ?${ newSearch} ` : ' ' ;
67
67
},
68
68
tooltipFormatter (v , locale ) {
69
- // TODO: use the localized number as below (why is it throwing Uncaught DOMException: Failed to execute
70
- // 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.?)
71
- // const number = `<gitea-locale-number data-number="${v.count}">${v.count}</gitea-locale-number>`;
72
- const number = v .count ;
69
+ const number = v .count .toLocaleString ();
73
70
const datetime = v .date .toISOString ();
74
71
const fallback = v .date .toLocaleDateString ();
75
72
const date = ` <relative-time format="datetime" year="numeric" month="short" day="numeric" weekday="" datetime="${ datetime} ">${ fallback} </relative-time>` ;
You can’t perform that action at this time.
0 commit comments