RubyMoney / money

A Ruby Library for dealing with money and currency conversion.
http://rubymoney.github.io/money
MIT License
2.75k stars 626 forks source link

update README with customising currency symbol example #1102

Open ptadros opened 5 months ago

ptadros commented 5 months ago

Context

Sometimes, there are currencies which have multiple symbols (e.g Hong Kong Dollar can be represented with $ or HK$. When an application supports multiple currencies, this produces ambiguous interpretation which currency is displayed (.e.g USD or HKD). This PR adds an example to the README how to do it (e.g can be placed in the gem initialiser in rails app).

Changes

Tests

ptadros commented 4 months ago

Hi @tagliala Could you please check this PR again?

tagliala commented 4 months ago

Hi @ptadros , sorry but I'm not a maintainer. I did a review because I was submitting a PR myself and I was interested in a "shortcut" to customize currency symbol