Skip to content

Commit 7fa9fa9

Browse files
feat(currency): Add Vietnamese Dong (VND) currency (#6902)
* feat(currency): add support for vietnamese dong currency * release: add upcoming release note * fix(currency): change the number format for vietnamese currency * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 9798c26 commit 7fa9fa9

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/desktop-client/src/components/settings/Currency.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function CurrencySettings() {
6161
['UAH', t('Ukrainian Hryvnia')],
6262
['USD', t('US Dollar')],
6363
['UZS', t('Uzbek Soum')],
64+
['VND', t('Vietnamese Dong')],
6465
]),
6566
[t],
6667
);

packages/loot-core/src/shared/currencies.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const currencies: Currency[] = [
6161
{ code: 'UAH', name: 'Ukrainian Hryvnia', symbol: '₴', decimalPlaces: 2, numberFormat: 'space-comma', symbolFirst: false },
6262
{ code: 'USD', name: 'US Dollar', symbol: '$', decimalPlaces: 2, numberFormat: 'comma-dot', symbolFirst: true },
6363
{ code: 'UZS', name: 'Uzbek Soum', symbol: 'UZS', decimalPlaces: 2, numberFormat: 'space-comma', symbolFirst: false },
64+
{ code: 'VND', name: 'Vietnamese Dong', symbol: '₫', decimalPlaces: 2, numberFormat: 'dot-comma', symbolFirst: false },
6465
];
6566

6667
export function getCurrency(code: string): Currency {

upcoming-release-notes/6902.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: Features
3+
authors: [antran22]
4+
---
5+
6+
Adds Vietnamese Dong (VND) currency

0 commit comments

Comments
 (0)