Skip to content

Commit 10d2f4e

Browse files
authored
Merge pull request #12 from bijancot/main
Create currencies for Indonesian Rupiah
2 parents 3aae211 + cfe2104 commit 10d2f4e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ DumbBudget supports the following currencies:
4444
- SEK (Swedish Krona) 🇸🇪
4545
- NOK (Norwegian Krone) 🇳🇴
4646
- DKK (Danish Krone) 🇩🇰
47+
- IDR (Indonesia Rupiah) 🇮🇩
4748

4849
Set your preferred currency using the `CURRENCY` environment variable (defaults to USD if not set).
4950

public/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ const SUPPORTED_CURRENCIES = {
236236
PLN: { locale: 'pl-PL', symbol: 'zł' },
237237
SEK: { locale: 'sv-SE', symbol: 'kr' },
238238
NOK: { locale: 'nb-NO', symbol: 'kr' },
239-
DKK: { locale: 'da-DK', symbol: 'kr' }
239+
DKK: { locale: 'da-DK', symbol: 'kr' },
240+
IDR: { locale: 'id-ID', symbol: 'Rp' }
240241
};
241242

242243
let currentCurrency = 'USD'; // Default currency

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ const SUPPORTED_CURRENCIES = [
649649
'CAD', 'CHF', 'CNY', 'HKD', 'NZD',
650650
'MXN', 'RUB', 'SGD', 'KRW', 'INR',
651651
'BRL', 'ZAR', 'TRY', 'PLN', 'SEK',
652-
'NOK', 'DKK'
652+
'NOK', 'DKK', 'IDR'
653653
];
654654

655655
// Get current currency setting

0 commit comments

Comments
 (0)