mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 10:25:01 +01:00
In the users locale of course. Without any annoying Accept-Language parsing or anything like that, just with the beauty of JavaScript.
4 lines
238 B
JavaScript
4 lines
238 B
JavaScript
// Do some fancy number formatting in your locale, so you can't blame me if the numbers look ass.
|
|
document.querySelectorAll(".number").forEach((elem) => {
|
|
elem.textContent = new Intl.NumberFormat().format(Number(elem.textContent));
|
|
});
|