I need to show user amount presented in different currencies. e.q. :
Your balance: $ 100 000.00
€ 70 000.00
3 000 000,00 руб.
So I need to use number_to_currency three times with different locales(en, eu, ru). What is the right way to do it?
I don’t think you actually need different locales, because you have just balances in different currencies. You can simply pass additional arguments to number_to_currency. Something like this:
This will display: € 70 000.00
Additionally it seems that you can set :locale option when calling number_to_currency. It’s not documented, but here is the part of the number_to_currency code:
So you should be able to do something like: