I have some strange example. If I write this:
parseFloat("12345,987").toLocaleString("slv")
the result would be as expected(slv has comma as decimal separator): 12.345,987
But if I round first to 2 decimals:
parseFloat("12345,987").toFixed(2).toLocaleString("slv")
the result would be always with english separator(dot):
12,345.99
How is that possible?
It should be: 12.345,99