Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation message about "symbol_position: :after" is a bit misleading #999

Closed
nflorentin opened this issue Sep 21, 2021 · 0 comments
Closed

Comments

@nflorentin
Copy link

Hi,

When using this configuration:
Spree::Money.default_formatting_rules = { symbol_position: :after }

I'm getting this deprecation message:
"symbol_position: :after is deprecated - you can replace it with format: %n %u"

But replacing default_formatting_rules = { format: "%n %u" } seems not equivalent to { symbol_position: :after } for negative numbers.

With { symbol_position: :after }, a negative number is displayed correctly : "-15 €".
With { format: "%n %u" }, a negative number is wrongly displayed like this: "15 -€".

I read the code and examples but I didn't find the way to correctly displayed negative number with euro symbol as suffix and also removing the deprecation message.

Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants