Skip to content

A local-first personal finance app

feat(currency): add BRL, JMD, RSD, RUB, THB and UAH (#5653)

Michael Süssemilch90b859fd74a8
diff --git a/packages/desktop-client/src/components/settings/Currency.tsx b/packages/desktop-client/src/components/settings/Currency.tsx
index cebbb22f94..a21c07f6b2 100644
--- a/packages/desktop-client/src/components/settings/Currency.tsx
+++ b/packages/desktop-client/src/components/settings/Currency.tsx
@@ -22,6 +22,7 @@ export function CurrencySettings() {
new Map<string, string>([
['', t('None')],
['AUD', t('Australian Dollar')],
+ ['BRL', t('Brazilian Real')],
['CAD', t('Canadian Dollar')],
['CHF', t('Swiss Franc')],
['CNY', t('Yuan Renminbi')],
@@ -29,14 +30,19 @@ export function CurrencySettings() {
['GBP', t('Pound Sterling')],
['HKD', t('Hong Kong Dollar')],
['INR', t('Indian Rupee')],
+ ['JMD', t('Jamaican Dollar')],
// ['JPY', t('Yen')],
['MDL', t('Moldovan Leu')],
['PHP', t('Philippine Peso')],
['PLN', t('Polish Złoty')],
['RON', t('Romanian Leu')],
+ ['RSD', t('Serbian Dinar')],
+ ['RUB', t('Russian Ruble')],
['SEK', t('Swedish Krona')],
['SGD', t('Singapore Dollar')],
+ ['THB', t('Thai Baht')],
['TRY', t('Turkish Lira')],
+ ['UAH', t('Ukrainian Hryvnia')],
['USD', t('US Dollar')],
['QAR', t('Qatari Riyal')],
]),
diff --git a/packages/loot-core/src/shared/currencies.ts b/packages/loot-core/src/shared/currencies.ts
index 0d6b747975..d2b66a030a 100644
--- a/packages/loot-core/src/shared/currencies.ts
+++ b/packages/loot-core/src/shared/currencies.ts
@@ -13,6 +13,7 @@ export type Currency = {
export const currencies: Currency[] = [
{ code: '', name: 'None', symbol: '', decimalPlaces: 2 },
{ code: 'AUD', name: 'Australian Dollar', symbol: 'A$', decimalPlaces: 2 },
+ { code: 'BRL', name: 'Brazilian Real', symbol: 'R$', decimalPlaces: 2 },
{ code: 'CAD', name: 'Canadian Dollar', symbol: 'CA$', decimalPlaces: 2 },
{ code: 'CHF', name: 'Swiss Franc', symbol: 'Fr.', decimalPlaces: 2 },
{ code: 'CNY', name: 'Yuan Renminbi', symbol: '¥', decimalPlaces: 2 },
@@ -20,14 +21,19 @@ export const currencies: Currency[] = [
{ code: 'GBP', name: 'Pound Sterling', symbol: '£', decimalPlaces: 2 },
{ code: 'HKD', name: 'Hong Kong Dollar', symbol: 'HK$', decimalPlaces: 2 },
{ code: 'INR', name: 'Indian Rupee', symbol: '₹', decimalPlaces: 2 },
+ { code: 'JMD', name: 'Jamaican Dollar', symbol: 'J$', decimalPlaces: 2 },
// { code: 'JPY', name: 'Yen', symbol: '¥', decimalPlaces: 0 },
{ code: 'MDL', name: 'Moldovan Leu', symbol: 'L', decimalPlaces: 2 },
{ code: 'PHP', name: 'Philippine Peso', symbol: '₱', decimalPlaces: 2 },
{ code: 'PLN', name: 'Polish Złoty', symbol: 'zł', decimalPlaces: 2 },
{ code: 'RON', name: 'Romanian Leu', symbol: 'lei', decimalPlaces: 2 },
+ { code: 'RSD', name: 'Serbian Dinar', symbol: 'RSD', decimalPlaces: 2 },
+ { code: 'RUB', name: 'Russian Ruble', symbol: '₽', decimalPlaces: 2 },
{ code: 'SEK', name: 'Swedish Krona', symbol: 'kr', decimalPlaces: 2 },
{ code: 'SGD', name: 'Singapore Dollar', symbol: 'S$', decimalPlaces: 2 },
+ { code: 'THB', name: 'Thai Baht', symbol: '฿', decimalPlaces: 2 },
{ code: 'TRY', name: 'Turkish Lira', symbol: '₺', decimalPlaces: 2 },
+ { code: 'UAH', name: 'Ukrainian Hryvnia', symbol: '₴', decimalPlaces: 2 },
{ code: 'USD', name: 'US Dollar', symbol: '$', decimalPlaces: 2 },
{ code: 'QAR', name: 'Qatari Riyal', symbol: 'QAR', decimalPlaces: 2 },
];
diff --git a/upcoming-release-notes/5653.md b/upcoming-release-notes/5653.md
new file mode 100644
index 0000000000..86e6315cbc
--- /dev/null
+++ b/upcoming-release-notes/5653.md
@@ -0,0 +1,6 @@
+---
+category: Features
+authors: [misu-dev]
+---
+
+Add BRL, JMD, RSD, RUB, THB and UAH currencies