Syafiqq / jquery-numberformatter

Automatically exported from code.google.com/p/jquery-numberformatter
0 stars 0 forks source link

space as separator #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

is that possible to user space as separator?

999 999 999

thank you

Original issue reported on code.google.com by dgastu...@gmail.com on 1 Oct 2012 at 12:18

GoogleCodeExporter commented 9 years ago
Yes, the french-like locales such as 'cz','fi','fr','ru','se','pl' all use 
comma for group seperator and space for decimal seperator. I guess however you 
need the group seperator to be space instead, this can be added yourself as a 
custom locale as follows -

    var nfLocalesLikeCUSTOM = [ 'C' ];

    var nfLocaleFormatting = [ [".", ","], [",", "."], [",", " "], [".", "'"], [" ", "."] ]; 
    var nfAllLocales = [ nfLocalesLikeUS, nfLocalesLikeDE, nfLocalesLikeFR, nfLocalesLikeCH, nfLocalesLikeCUSTOM ]

Original comment by apar...@gmail.com on 18 Oct 2013 at 1:09