Explorar o código

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

Adds IDR with Rp symbol to the supported currencies list, available
in Settings → Cost Tracking.
maziggy hai 2 meses
pai
achega
ed510cb9bc

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3 - 0
CHANGELOG.md


+ 6 - 2
frontend/src/__tests__/utils/currency.test.ts

@@ -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 - 0
frontend/src/utils/currency.ts

@@ -29,6 +29,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
   HUF: 'Ft',
   ILS: '₪',
   UAH: '₴',
+  IDR: 'Rp',
 };
 
 export function getCurrencySymbol(currencyCode: string): string {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
static/assets/index-DxxKVIUT.js


+ 1 - 1
static/index.html

@@ -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>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio