Skip to content

Commit b9db5cb

Browse files
authored
Merge pull request #47 from abdulkareemakn/feature/PKR-currency-support
Feature/PKR currency support
2 parents d44543b + 3daa254 commit b9db5cb

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
@@ -46,6 +46,7 @@ DumbBudget supports the following currencies:
4646
- NOK (Norwegian Krone) 🇳🇴
4747
- DKK (Danish Krone) 🇩🇰
4848
- IDR (Indonesia Rupiah) 🇮🇩
49+
- PKR (Pakistani Rupee) 🇵🇰
4950

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

public/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ const SUPPORTED_CURRENCIES = {
259259
NOK: { locale: 'nb-NO', symbol: 'kr' },
260260
DKK: { locale: 'da-DK', symbol: 'kr' },
261261
IDR: { locale: 'id-ID', symbol: 'Rp' },
262-
PHP: { locale: 'fil-PH', symbol: '₱' }
262+
PHP: { locale: 'fil-PH', symbol: '₱' },
263+
PKR: { locale: 'en-PK', symbol: 'Rs' }
263264
};
264265

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

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ const SUPPORTED_CURRENCIES = [
977977
'CAD', 'CHF', 'CNY', 'HKD', 'NZD',
978978
'MXN', 'RUB', 'SGD', 'KRW', 'INR',
979979
'BRL', 'ZAR', 'TRY', 'PLN', 'SEK',
980-
'NOK', 'DKK', 'IDR', 'PHP'
980+
'NOK', 'DKK', 'IDR', 'PHP', 'PKR'
981981
];
982982

983983
// Get current currency setting

0 commit comments

Comments
 (0)