Is there any JavaScript standard API to parse to number according to locale?
The NPM package d2l-intl provides a locale-sensitive parser. It has since been superseded by @brightspace-ui/intl (essentially version 3), so some info below might or might not apply in its newer incantation. const { NumberFormat, NumberParse } = require(‘d2l-intl’); const formatter = new NumberFormat(‘es’); const parser = new NumberParse(‘es’); const number = 1234.5; console.log(formatter.format(number)); // 1.234,5 … Read more