Is there a built in function of JavaScript to convert a string into a particular locale (Euro in my case)?
E.g. 50.00 should get converted to 50,0
50.00
50,0
I have prepared small library to deal with currency formatting - money
money(1000.5, 'EUR'); // -> 1 000.50 € money(1000.5, 'USD'); // -> $1,000.50 money(1000.5, 'PLN'); // -> 1 000,50 zł
Supported currency (ISO codes): PLN, EUR, USD, GBP, JPY, CZK, SEK