code4romania / consul

Consul - Open Government and E-Participation Web Software
https://consulproject.org
GNU Affero General Public License v3.0
0 stars 4 forks source link

Add support for RON #6

Closed catileptic closed 3 years ago

catileptic commented 3 years ago

RON needs to be added as a new currency in CURRENCY_SYMBOLS = %w[€ $ £ ¥].freeze.

In order to adhere to the way contributing is done in Consul (documentation), we need to create app/models/custom/budget.rb and add this new currency in a customization of the budget model.

Screenshot 2021-07-29 at 12 14 36

We also need to change how the currency is displayed. The format should be <sum> <currency> (as in 20 RON). The current way in which Consul displayed currency is:

Screenshot 2021-07-29 at 14 44 35

Make sure to add require_dependency at the top of the file as in the examples in the documentation.