Use babel library instead of locale to ensure platform independence.

See http://babel.pocoo.org/docs/numbers/