feat(currency): add Indonesian Rupiah (IDR) support (#1869)

Adds IDR with Rp symbol to the supported currencies list, available
    in Settings → Cost Tracking.
This commit is contained in:
maziggy
2026-07-07 10:59:06 +02:00
5 changed files with 9 additions and 2744 deletions
-2740
View File
File diff suppressed because one or more lines are too long
@@ -57,7 +57,11 @@ describe('SUPPORTED_CURRENCIES', () => {
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'BZD')).toBeDefined();
});
it('has 30 entries', () => {
expect(SUPPORTED_CURRENCIES).toHaveLength(30);
it('contains IDR', () => {
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'IDR')).toBeDefined();
});
it('has 31 entries', () => {
expect(SUPPORTED_CURRENCIES).toHaveLength(31);
});
});
+1
View File
@@ -29,6 +29,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
HUF: 'Ft',
ILS: '₪',
UAH: '₴',
IDR: 'Rp',
};
export function getCurrencySymbol(currencyCode: string): string {
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -26,7 +26,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-DDY1oW0X.js"></script>
<script type="module" crossorigin src="/assets/index-DxxKVIUT.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BxVhuRti.css">
</head>
<body>