money icon indicating copy to clipboard operation
money copied to clipboard

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

Open nflorentin opened this issue 4 years ago • 0 comments

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

nflorentin avatar Sep 21 '21 13:09 nflorentin