money icon indicating copy to clipboard operation
money copied to clipboard

Format localization does not work

Open cercxtrova opened this issue 2 years ago • 1 comments

Hi,

In many countries, the symbol must be placed after the amount, for example, €10 is written as 10 € in France. However, format does not take this into account.

In my configuration, I have

config.locale_backend = :i18n

And this is my locale file:

fr:
  number:
    currency:
      format:
        format: '%n %u'

However, it doesn't work for the sign position:

I18n.with_locale(:fr) do
  Money.new(9999).format
end
=> "€99,99"
I18n.with_locale(:en) do
  Money.new(9999).format
end
=> "€99.99"

I see this topic has been discussed for many years here. Is there anything new or has this project been postponed?

cercxtrova avatar Dec 06 '23 14:12 cercxtrova

I have another question - is this library still maintained by anyone at all? There has been almost no activity lately :(

StepanenkoArtem avatar Feb 19 '24 18:02 StepanenkoArtem

it is. we just seek PRs as we are not paid to maintain this. please bring this into a PR to discuss.

semmons99 avatar Mar 13 '24 13:03 semmons99