Add TWD Currency (#7095)

* Add New Taiwan Dollar to currency list

* Add New Taiwan Dollar to currency list

* Fix decimalPlaces for New Taiwan Dollar

Updated decimalPlaces for New Taiwan Dollar from 0 to 2, as suggested by coderabbitai, "Line 62 introduces TWD as zero-decimal, but this codebase currently has an unresolved zero-decimal conversion/storage issue. This risks incorrect persisted amounts for TWD transactions."

* Add upcoming-releass-notes

* Add New Taiwan Dollar (NT$) to available currency

* Add New Taiwan Dollar (NT$) to available currency
This commit is contained in:
YHC
2026-03-05 02:46:20 +08:00
committed by GitHub
parent e1f834371b
commit c7ebfd8ad4
3 changed files with 8 additions and 0 deletions

View File

@@ -59,6 +59,7 @@ export function CurrencySettings() {
['SGD', t('Singapore Dollar')],
['THB', t('Thai Baht')],
['TRY', t('Turkish Lira')],
['TWD', t('New Taiwan Dollar')],
['UAH', t('Ukrainian Hryvnia')],
['USD', t('US Dollar')],
['UZS', t('Uzbek Soum')],

View File

@@ -59,6 +59,7 @@ export const currencies: Currency[] = [
{ code: 'SGD', name: 'Singapore Dollar', symbol: 'S$', decimalPlaces: 2, numberFormat: 'comma-dot', symbolFirst: true },
{ code: 'THB', name: 'Thai Baht', symbol: '฿', decimalPlaces: 2, numberFormat: 'comma-dot', symbolFirst: true },
{ code: 'TRY', name: 'Turkish Lira', symbol: '₺', decimalPlaces: 2, numberFormat: 'dot-comma', symbolFirst: true },
{ code: 'TWD', name: 'New Taiwan Dollar', symbol: 'NT$', decimalPlaces: 2, numberFormat: 'comma-dot', symbolFirst: true },
{ code: 'UAH', name: 'Ukrainian Hryvnia', symbol: '₴', decimalPlaces: 2, numberFormat: 'space-comma', symbolFirst: false },
{ code: 'USD', name: 'US Dollar', symbol: '$', decimalPlaces: 2, numberFormat: 'comma-dot', symbolFirst: true },
{ code: 'UZS', name: 'Uzbek Soum', symbol: 'UZS', decimalPlaces: 2, numberFormat: 'space-comma', symbolFirst: false },

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [yhc0712]
---
Add New Taiwan Dollar (TWD) to the list of available currencies.