How to change currency? #143

Closed
gr2m opened this Issue Feb 17, 2014 · 4 comments

Projects

None yet

4 participants

@gr2m
gr2m commented Feb 17, 2014

I don't want to change language, but use € instead of $. number(1234).format('€0,0.00') just returns "1,234.00", ignoring the currency symbol. I've looked through the docs and the exisitng issues, but couldn't find any way to just change the currency symbol.

@commel
commel commented Mar 5, 2014

Same here. It seems that the currency symbol is simply ignored from the language file.

@commel
commel commented Mar 5, 2014

apparently i did something wrong. now it works.

load numeral.js
load de.js

numeral(totalSum).format('$0,0.00')

example:

numeral(12.22).format("$0,0.00");
"€12,22"
@johnnytn
johnnytn commented Sep 2, 2016

Any news ? I installed the module, but Just the dolar symbol seems to be working

@adamwdraper
Owner

Yes the dollar sign is what tells the format it is a currency that works in the format string. to change the symbol the locale needs to be changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment