From c57f17233a074dda59f31e08e323004ed1a1c159 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 3 Aug 2024 16:11:17 +0800 Subject: [PATCH] support currency unit name --- pkg/models/currency.go | 10 +- pkg/models/user.go | 2 +- src/consts/currency.js | 502 +++++++++++++++++++++---------- src/lib/currency.js | 10 +- src/lib/i18n.js | 22 +- src/locales/en.js | 659 +++++++++++++++++++++++++++++++---------- src/locales/zh_Hans.js | 659 +++++++++++++++++++++++++++++++---------- 7 files changed, 1374 insertions(+), 490 deletions(-) diff --git a/pkg/models/currency.go b/pkg/models/currency.go index bb90ef4a..f78828bf 100644 --- a/pkg/models/currency.go +++ b/pkg/models/currency.go @@ -15,8 +15,10 @@ const ( CURRENCY_DISPLAY_TYPE_SYMBOL_AFTER_AMOUNT_WITHOUT_SPACE CurrencyDisplayType = 5 CURRENCY_DISPLAY_TYPE_CODE_BEFORE_AMOUNT CurrencyDisplayType = 6 CURRENCY_DISPLAY_TYPE_CODE_AFTER_AMOUNT CurrencyDisplayType = 7 - CURRENCY_DISPLAY_TYPE_NAME_BEFORE_AMOUNT CurrencyDisplayType = 8 - CURRENCY_DISPLAY_TYPE_NAME_AFTER_AMOUNT CurrencyDisplayType = 9 + CURRENCY_DISPLAY_TYPE_UNIT_BEFORE_AMOUNT CurrencyDisplayType = 8 + CURRENCY_DISPLAY_TYPE_UNIT_AFTER_AMOUNT CurrencyDisplayType = 9 + CURRENCY_DISPLAY_TYPE_NAME_BEFORE_AMOUNT CurrencyDisplayType = 10 + CURRENCY_DISPLAY_TYPE_NAME_AFTER_AMOUNT CurrencyDisplayType = 11 CURRENCY_DISPLAY_TYPE_INVALID CurrencyDisplayType = 255 ) @@ -39,6 +41,10 @@ func (d CurrencyDisplayType) String() string { return "Code Before Amount" case CURRENCY_DISPLAY_TYPE_CODE_AFTER_AMOUNT: return "Code After Amount" + case CURRENCY_DISPLAY_TYPE_UNIT_BEFORE_AMOUNT: + return "Unit Before Amount" + case CURRENCY_DISPLAY_TYPE_UNIT_AFTER_AMOUNT: + return "Unit After Amount" case CURRENCY_DISPLAY_TYPE_NAME_BEFORE_AMOUNT: return "Name Before Amount" case CURRENCY_DISPLAY_TYPE_NAME_AFTER_AMOUNT: diff --git a/pkg/models/user.go b/pkg/models/user.go index f8bba8c2..2f31e81c 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -191,7 +191,7 @@ type UserProfileUpdateRequest struct { DecimalSeparator *DecimalSeparator `json:"decimalSeparator" binding:"omitempty,min=0,max=3"` DigitGroupingSymbol *DigitGroupingSymbol `json:"digitGroupingSymbol" binding:"omitempty,min=0,max=4"` DigitGrouping *DigitGroupingType `json:"digitGrouping" binding:"omitempty,min=0,max=2"` - CurrencyDisplayType *CurrencyDisplayType `json:"currencyDisplayType" binding:"omitempty,min=0,max=9"` + CurrencyDisplayType *CurrencyDisplayType `json:"currencyDisplayType" binding:"omitempty,min=0,max=11"` ExpenseAmountColor *AmountColorType `json:"expenseAmountColor" binding:"omitempty,min=0,max=4"` IncomeAmountColor *AmountColorType `json:"incomeAmountColor" binding:"omitempty,min=0,max=4"` } diff --git a/src/consts/currency.js b/src/consts/currency.js index 004f2a00..41f1dd6f 100644 --- a/src/consts/currency.js +++ b/src/consts/currency.js @@ -9,961 +9,1120 @@ const allCurrencies = { symbol: { normal: 'Dh', plural: 'Dhs' - } + }, + unit: 'Dirham' }, 'AFN': { // Afghani code: 'AFN', symbol: { normal: 'Af.', plural: 'Afs.' - } + }, + unit: 'Afghani' }, 'ALL': { // Lek code: 'ALL', symbol: { normal: 'L' - } + }, + unit: 'Lek' }, 'AMD': { // Armenian Dram code: 'AMD', symbol: { normal: '֏' - } + }, + unit: 'Dram' }, 'ANG': { // Netherlands Antillean Guilder code: 'ANG', symbol: { normal: 'ƒ' - } + }, + unit: 'Guilder' }, 'AOA': { // Kwanza code: 'AOA', symbol: { normal: 'Kz' - } + }, + unit: 'Kwanza' }, 'ARS': { // Argentine Peso code: 'ARS', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'AUD': { // Australian Dollar code: 'AUD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'AWG': { // Aruban Florin code: 'AWG', symbol: { normal: 'Afl.' - } + }, + unit: 'Florin' }, 'AZN': { // Azerbaijan Manat code: 'AZN', symbol: { normal: '₼' - } + }, + unit: 'Manat' }, 'BAM': { // Convertible Mark code: 'BAM', symbol: { normal: 'KM' - } + }, + unit: 'Mark' }, 'BBD': { // Barbados Dollar code: 'BBD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'BDT': { // Taka code: 'BDT', symbol: { normal: '৳' - } + }, + unit: 'Taka' }, 'BGN': { // Bulgarian Lev code: 'BGN', symbol: { normal: 'лв' - } + }, + unit: 'Lev' }, 'BHD': { // Bahraini Dinar code: 'BHD', symbol: { normal: 'BD' - } + }, + unit: 'Dinar' }, 'BIF': { // Burundi Franc code: 'BIF', symbol: { normal: 'FBu' - } + }, + unit: 'Franc' }, 'BMD': { // Bermudian Dollar code: 'BMD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'BND': { // Brunei Dollar code: 'BND', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'BOB': { // Boliviano code: 'BOB', symbol: { normal: 'Bs' - } + }, + unit: 'Boliviano' }, 'BRL': { // Brazilian Real code: 'BRL', symbol: { normal: 'R$' - } + }, + unit: 'Real' }, 'BSD': { // Bahamian Dollar code: 'BSD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'BTN': { // Ngultrum code: 'BTN', symbol: { normal: 'Nu.' - } + }, + unit: 'Ngultrum' }, 'BWP': { // Pula code: 'BWP', symbol: { normal: 'P' - } + }, + unit: 'Pula' }, 'BYN': { // Belarusian Ruble code: 'BYN', symbol: { normal: 'Rbl', plural: 'Rbls' - } + }, + unit: 'Ruble' }, 'BZD': { // Belize Dollar code: 'BZD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'CAD': { // Canadian Dollar code: 'CAD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'CDF': { // Congolese Franc code: 'CDF', symbol: { normal: 'FC' - } + }, + unit: 'Franc' }, 'CHF': { // Swiss Franc code: 'CHF', symbol: { normal: 'CHF' - } + }, + unit: 'Franc' }, 'CLP': { // Chilean Peso code: 'CLP', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'CNY': { // Yuan Renminbi code: 'CNY', symbol: { normal: '¥' - } + }, + unit: 'Yuan' }, 'COP': { // Colombian Peso code: 'COP', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'CRC': { // Costa Rican Colon code: 'CRC', symbol: { normal: '₡' - } + }, + unit: 'Colon' }, 'CUC': { // Peso Convertible code: 'CUC', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'CUP': { // Cuban Peso code: 'CUP', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'CVE': { // Cabo Verde Escudo code: 'CVE', symbol: { normal: '$' - } + }, + unit: 'Escudo' }, 'CZK': { // Czech Koruna code: 'CZK', symbol: { normal: 'Kč' - } + }, + unit: 'Koruna' }, 'DJF': { // Djibouti Franc code: 'DJF', symbol: { normal: 'Fdj' - } + }, + unit: 'Franc' }, 'DKK': { // Danish Krone code: 'DKK', symbol: { normal: 'kr.' - } + }, + unit: 'Krone' }, 'DOP': { // Dominican Peso code: 'DOP', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'DZD': { // Algerian Dinar code: 'DZD', symbol: { normal: 'DA' - } + }, + unit: 'Dinar' }, 'EGP': { // Egyptian Pound code: 'EGP', symbol: { normal: '£' - } + }, + unit: 'Pound' }, 'ERN': { // Nakfa code: 'ERN', symbol: { normal: 'Nkf' - } + }, + unit: 'Nakfa' }, 'ETB': { // Ethiopian Birr code: 'ETB', symbol: { normal: 'Br' - } + }, + unit: 'Birr' }, 'EUR': { // Euro code: 'EUR', symbol: { normal: '€' - } + }, + unit: 'Euro' }, 'FJD': { // Fiji Dollar code: 'FJD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'FKP': { // Falkland Islands Pound code: 'FKP', symbol: { normal: '£' - } + }, + unit: 'Pound' }, 'GBP': { // Pound Sterling code: 'GBP', symbol: { normal: '£' - } + }, + unit: 'Pound' }, 'GEL': { // Lari code: 'GEL', symbol: { normal: 'ლ' - } + }, + unit: 'Lari' }, 'GHS': { // Ghana Cedi code: 'GHS', symbol: { normal: 'GH₵' - } + }, + unit: 'Cedi' }, 'GIP': { // Gibraltar Pound code: 'GIP', symbol: { normal: '£' - } + }, + unit: 'Pound' }, 'GMD': { // Dalasi code: 'GMD', symbol: { normal: 'D' - } + }, + unit: 'Dalasi' }, 'GNF': { // Guinean Franc code: 'GNF', symbol: { normal: 'FG' - } + }, + unit: 'Franc' }, 'GTQ': { // Quetzal code: 'GTQ', symbol: { normal: 'Q' - } + }, + unit: 'Quetzal' }, 'GYD': { // Guyana Dollar code: 'GYD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'HKD': { // Hong Kong Dollar code: 'HKD', symbol: { normal: 'HK$' - } + }, + unit: 'Dollar' }, 'HNL': { // Lempira code: 'HNL', symbol: { normal: 'L' - } + }, + unit: 'Lempira' }, 'HTG': { // Gourde code: 'HTG', symbol: { normal: 'G' - } + }, + unit: 'Gourde' }, 'HUF': { // Forint code: 'HUF', symbol: { normal: 'Ft' - } + }, + unit: 'Forint' }, 'IDR': { // Rupiah code: 'IDR', symbol: { normal: 'Rp' - } + }, + unit: 'Rupiah' }, 'ILS': { // New Israeli Sheqel code: 'ILS', symbol: { normal: '₪' - } + }, + unit: 'Shekel' }, 'INR': { // Indian Rupee code: 'INR', symbol: { normal: '₹' - } + }, + unit: 'Rupee' }, 'IQD': { // Iraqi Dinar code: 'IQD', symbol: { normal: 'ID' - } + }, + unit: 'Dinar' }, 'IRR': { // Iranian Rial code: 'IRR', symbol: { normal: 'Rl', plural: 'Rls' - } + }, + unit: 'Rial' }, 'ISK': { // Iceland Krona code: 'ISK', symbol: { normal: 'kr' - } + }, + unit: 'Krona' }, 'JMD': { // Jamaican Dollar code: 'JMD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'JOD': { // Jordanian Dinar code: 'JOD', symbol: { normal: 'د.أ' - } + }, + unit: 'Dinar' }, 'JPY': { // Yen code: 'JPY', symbol: { normal: '¥' - } + }, + unit: 'Yen' }, 'KES': { // Kenyan Shilling code: 'KES', symbol: { normal: '/=' - } + }, + unit: 'Shilling' }, 'KGS': { // Som code: 'KGS', symbol: { normal: '⃀' - } + }, + unit: 'Som' }, 'KHR': { // Riel code: 'KHR', symbol: { normal: '៛' - } + }, + unit: 'Riel' }, 'KMF': { // Comorian Franc code: 'KMF', symbol: { normal: 'CF' - } + }, + unit: 'Franc' }, 'KPW': { // North Korean Won code: 'KPW', symbol: { normal: '₩' - } + }, + unit: 'Won' }, 'KRW': { // Won code: 'KRW', symbol: { normal: '₩' - } + }, + unit: 'Won' }, 'KWD': { // Kuwaiti Dinar code: 'KWD', symbol: { normal: 'KD' - } + }, + unit: 'Dinar' }, 'KYD': { // Cayman Islands Dollar code: 'KYD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'KZT': { // Tenge code: 'KZT', symbol: { normal: '₸' - } + }, + unit: 'Tenge' }, 'LAK': { // Lao Kip code: 'LAK', symbol: { normal: '₭' - } + }, + unit: 'Kip' }, 'LBP': { // Lebanese Pound code: 'LBP', symbol: { normal: 'LL' - } + }, + unit: 'Pound' }, 'LKR': { // Sri Lanka Rupee code: 'LKR', symbol: { normal: 'රු' - } + }, + unit: 'Rupee' }, 'LRD': { // Liberian Dollar code: 'LRD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'LSL': { // Loti code: 'LSL', symbol: { normal: 'L', plural: 'M' - } + }, + unit: 'Loti' }, 'LYD': { // Libyan Dinar code: 'LYD', symbol: { normal: 'LD' - } + }, + unit: 'Dinar' }, 'MAD': { // Moroccan Dirham code: 'MAD', symbol: { normal: 'DH' - } + }, + unit: 'Dirham' }, 'MDL': { // Moldovan Leu code: 'MDL', symbol: { normal: 'L' - } + }, + unit: 'Leu' }, 'MGA': { // Malagasy Ariary code: 'MGA', symbol: { normal: 'Ar' - } + }, + unit: 'Ariary' }, 'MKD': { // Denar code: 'MKD', symbol: { normal: 'DEN' - } + }, + unit: 'Denar' }, 'MMK': { // Kyat code: 'MMK', symbol: { normal: 'K', plural: 'Ks.' - } + }, + unit: 'Kyat' }, 'MNT': { // Tugrik code: 'MNT', symbol: { normal: '₮' - } + }, + unit: 'Tugrik' }, 'MOP': { // Pataca code: 'MOP', symbol: { normal: '$' - } + }, + unit: 'Pataca' }, 'MRU': { // Ouguiya code: 'MRU', symbol: { normal: 'UM' - } + }, + unit: 'Ouguiya' }, 'MUR': { // Mauritius Rupee code: 'MUR', symbol: { normal: 'Re.', plural: 'Rs.' - } + }, + unit: 'Rupee' }, 'MVR': { // Rufiyaa code: 'MVR', symbol: { normal: 'Rf.' - } + }, + unit: 'Rufiyaa' }, 'MWK': { // Malawi Kwacha code: 'MWK', symbol: { normal: 'K' - } + }, + unit: 'Kwacha' }, 'MXN': { // Mexican Peso code: 'MXN', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'MYR': { // Malaysian Ringgit code: 'MYR', symbol: { normal: 'RM' - } + }, + unit: 'Ringgit' }, 'MZN': { // Mozambique Metical code: 'MZN', symbol: { normal: 'MT' - } + }, + unit: 'Metical' }, 'NAD': { // Namibia Dollar code: 'NAD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'NGN': { // Naira code: 'NGN', symbol: { normal: '₦' - } + }, + unit: 'Naira' }, 'NIO': { // Cordoba Oro code: 'NIO', symbol: { normal: 'C$' - } + }, + unit: 'Cordoba' }, 'NOK': { // Norwegian Krone code: 'NOK', symbol: { normal: 'kr' - } + }, + unit: 'Krone' }, 'NPR': { // Nepalese Rupee code: 'NPR', symbol: { normal: 'रु' - } + }, + unit: 'Rupee' }, 'NZD': { // New Zealand Dollar code: 'NZD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'OMR': { // Rial Omani code: 'OMR', symbol: { normal: 'R.O' - } + }, + unit: 'Rial' }, 'PAB': { // Balboa code: 'PAB', symbol: { normal: 'B/.' - } + }, + unit: 'Balboa' }, 'PEN': { // Sol code: 'PEN', symbol: { normal: 'S/' - } + }, + unit: 'Sol' }, 'PGK': { // Kina code: 'PGK', symbol: { normal: 'K' - } + }, + unit: 'Kina' }, 'PHP': { // Philippine Peso code: 'PHP', symbol: { normal: '₱' - } + }, + unit: 'Peso' }, 'PKR': { // Pakistan Rupee code: 'PKR', symbol: { normal: 'Re.', plural: 'Rs.' - } + }, + unit: 'Rupee' }, 'PLN': { // Zloty code: 'PLN', symbol: { normal: 'zł' - } + }, + unit: 'Zloty' }, 'PYG': { // Guarani code: 'PYG', symbol: { normal: '₲' - } + }, + unit: 'Guarani' }, 'QAR': { // Qatari Rial code: 'QAR', symbol: { normal: 'QR' - } + }, + unit: 'Rial' }, 'RON': { // Romanian Leu code: 'RON', symbol: { normal: 'L' - } + }, + unit: 'Leu' }, 'RSD': { // Serbian Dinar code: 'RSD', symbol: { normal: 'din.' - } + }, + unit: 'Dinar' }, 'RUB': { // Russian Ruble code: 'RUB', symbol: { normal: '₽' - } + }, + unit: 'Ruble' }, 'RWF': { // Rwanda Franc code: 'RWF', symbol: { normal: 'FRw' - } + }, + unit: 'Franc' }, 'SAR': { // Saudi Riyal code: 'SAR', symbol: { normal: 'SAR' - } + }, + unit: 'Riyal' }, 'SBD': { // Solomon Islands Dollar code: 'SBD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'SCR': { // Seychelles Rupee code: 'SCR', symbol: { normal: 'Re.', plural: 'Rs.' - } + }, + unit: 'Rupee' }, 'SDG': { // Sudanese Pound code: 'SDG', symbol: { normal: 'LS' - } + }, + unit: 'Pound' }, 'SEK': { // Swedish Krona code: 'SEK', symbol: { normal: 'kr' - } + }, + unit: 'Krona' }, 'SGD': { // Singapore Dollar code: 'SGD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'SHP': { // Saint Helena Pound code: 'SHP', symbol: { normal: '£' - } + }, + unit: 'Pound' }, 'SLE': { // Leone code: 'SLE', symbol: { normal: 'Le' - } + }, + unit: 'Leone' }, 'SOS': { // Somali Shilling code: 'SOS', symbol: { normal: 'Sh.So.' - } + }, + unit: 'Shilling' }, 'SRD': { // Surinam Dollar code: 'SRD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'SSP': { // South Sudanese Pound code: 'SSP', symbol: { normal: 'SS£' - } + }, + unit: 'Pound' }, 'STN': { // Dobra code: 'STN', symbol: { normal: 'Db' - } + }, + unit: 'Dobra' }, 'SVC': { // El Salvador Colon code: 'SVC', symbol: { normal: '₡' - } + }, + unit: 'Colon' }, 'SYP': { // Syrian Pound code: 'SYP', symbol: { normal: 'LS' - } + }, + unit: 'Pound' }, 'SZL': { // Lilangeni code: 'SZL', symbol: { normal: 'E' - } + }, + unit: 'Lilangeni' }, 'THB': { // Baht code: 'THB', symbol: { normal: '฿' - } + }, + unit: 'Baht' }, 'TJS': { // Somoni code: 'TJS', symbol: { normal: 'SM' - } + }, + unit: 'Somoni' }, 'TMT': { // Turkmenistan New Manat code: 'TMT', symbol: { normal: 'm' - } + }, + unit: 'Manat' }, 'TND': { // Tunisian Dinar code: 'TND', symbol: { normal: 'DT' - } + }, + unit: 'Dinar' }, 'TOP': { // Pa’anga code: 'TOP', symbol: { normal: 'T$' - } + }, + unit: 'Paanga' }, 'TRY': { // Turkish Lira code: 'TRY', symbol: { normal: '₺' - } + }, + unit: 'Lira' }, 'TTD': { // Trinidad and Tobago Dollar code: 'TTD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'TWD': { // New Taiwan Dollar code: 'TWD', symbol: { normal: 'NT$' - } + }, + unit: 'Dollar' }, 'TZS': { // Tanzanian Shilling code: 'TZS', symbol: { normal: '/=' - } + }, + unit: 'Shilling' }, 'UAH': { // Hryvnia code: 'UAH', symbol: { normal: '₴' - } + }, + unit: 'Hryvnia' }, 'UGX': { // Uganda Shilling code: 'UGX', symbol: { normal: '/=' - } + }, + unit: 'Shilling' }, 'USD': { // US Dollar code: 'USD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'UYU': { // Peso Uruguayo code: 'UYU', symbol: { normal: '$' - } + }, + unit: 'Peso' }, 'UZS': { // Uzbekistan Sum - code: 'UZS' + code: 'UZS', + unit: 'Sum' }, 'VED': { // Bolívar Soberano code: 'VED', symbol: { normal: 'Bs.D' - } + }, + unit: 'Bolivar' }, 'VES': { // Bolívar Soberano code: 'VES', symbol: { normal: 'Bs.S' - } + }, + unit: 'Bolivar' }, 'VND': { // Dong code: 'VND', symbol: { normal: '₫' - } + }, + unit: 'Dong' }, 'VUV': { // Vatu code: 'VUV', symbol: { normal: 'VT' - } + }, + unit: 'Vatu' }, 'WST': { // Tala code: 'WST', symbol: { normal: '$' - } + }, + unit: 'Tala' }, 'XAF': { // CFA Franc BEAC code: 'XAF', symbol: { normal: 'F.CFA' - } + }, + unit: 'Franc' }, 'XCD': { // East Caribbean Dollar code: 'XCD', symbol: { normal: '$' - } + }, + unit: 'Dollar' }, 'XOF': { // CFA Franc BCEAO code: 'XOF', symbol: { normal: 'F.CFA' - } + }, + unit: 'Franc' }, 'XPF': { // CFP Franc code: 'XPF', symbol: { normal: 'F' - } + }, + unit: 'Franc' }, 'XSU': { // Sucre code: 'XSU', symbol: { normal: 'S/.' - } + }, + unit: 'Sucre' }, 'YER': { // Yemeni Rial code: 'YER', symbol: { normal: 'YRl', plural: 'YRls' - } + }, + unit: 'Rial' }, 'ZAR': { // Rand code: 'ZAR', symbol: { normal: 'R' - } + }, + unit: 'Rand' }, 'ZMW': { // Zambian Kwacha code: 'ZMW', symbol: { normal: 'K' - } + }, + unit: 'Kwacha' }, 'ZWG': { // Zimbabwe Gold code: 'ZWG', symbol: { normal: 'ZiG' - } + }, + unit: 'ZiG' }, 'ZWL': { // Zimbabwe Dollar code: 'ZWL', symbol: { normal: '$' - } + }, + unit: 'Dollar' } }; @@ -971,7 +1130,8 @@ const allCurrencyDisplaySymbol = { None: 0, Symbol: 1, Code: 2, - Name: 3 + Unit: 3, + Name: 4 }; const allCurrencyDisplayLocation = { @@ -1028,15 +1188,29 @@ const allCurrencyDisplayType = { location: allCurrencyDisplayLocation.AfterAmount, separator: ' ' }, - NameBeforeAmount: { + UnitBeforeAmount: { type: 8, + name: 'Currency Unit', + symbol: allCurrencyDisplaySymbol.Unit, + location: allCurrencyDisplayLocation.BeforeAmount, + separator: ' ' + }, + UnitAfterAmount: { + type: 9, + name: 'Currency Unit', + symbol: allCurrencyDisplaySymbol.Unit, + location: allCurrencyDisplayLocation.AfterAmount, + separator: ' ' + }, + NameBeforeAmount: { + type: 10, name: 'Currency Name', symbol: allCurrencyDisplaySymbol.Name, location: allCurrencyDisplayLocation.BeforeAmount, separator: ' ' }, NameAfterAmount: { - type: 9, + type: 11, name: 'Currency Name', symbol: allCurrencyDisplaySymbol.Name, location: allCurrencyDisplayLocation.AfterAmount, @@ -1052,6 +1226,8 @@ const allCurrencyDisplayTypeArray = [ allCurrencyDisplayType.SymbolAfterAmountWithoutSpace, allCurrencyDisplayType.CodeBeforeAmount, allCurrencyDisplayType.CodeAfterAmount, + allCurrencyDisplayType.UnitBeforeAmount, + allCurrencyDisplayType.UnitAfterAmount, allCurrencyDisplayType.NameBeforeAmount, allCurrencyDisplayType.NameAfterAmount ]; @@ -1064,6 +1240,8 @@ const allCurrencyDisplayTypeMap = { [allCurrencyDisplayType.SymbolAfterAmountWithoutSpace.type]: allCurrencyDisplayType.SymbolAfterAmountWithoutSpace, [allCurrencyDisplayType.CodeBeforeAmount.type]: allCurrencyDisplayType.CodeBeforeAmount, [allCurrencyDisplayType.CodeAfterAmount.type]: allCurrencyDisplayType.CodeAfterAmount, + [allCurrencyDisplayType.UnitBeforeAmount.type]: allCurrencyDisplayType.UnitBeforeAmount, + [allCurrencyDisplayType.UnitAfterAmount.type]: allCurrencyDisplayType.UnitAfterAmount, [allCurrencyDisplayType.NameBeforeAmount.type]: allCurrencyDisplayType.NameBeforeAmount, [allCurrencyDisplayType.NameAfterAmount.type]: allCurrencyDisplayType.NameAfterAmount }; diff --git a/src/lib/currency.js b/src/lib/currency.js index 710864ff..ba7022a0 100644 --- a/src/lib/currency.js +++ b/src/lib/currency.js @@ -2,7 +2,7 @@ import currencyConstants from '@/consts/currency.js'; import { isString, isNumber } from './common.js'; -export function appendCurrencySymbol(value, currencyDisplayType, currencyCode, currencyName, isPlural) { +export function appendCurrencySymbol(value, currencyDisplayType, currencyCode, currencyUnit, currencyName, isPlural) { if (isNumber(value)) { value = value.toString(); } @@ -11,7 +11,7 @@ export function appendCurrencySymbol(value, currencyDisplayType, currencyCode, c return value; } - const symbol = getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyName, isPlural); + const symbol = getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyUnit, currencyName, isPlural); if (!symbol) { return value; @@ -30,7 +30,7 @@ export function appendCurrencySymbol(value, currencyDisplayType, currencyCode, c return value; } -export function getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyName, isPlural) { +export function getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyUnit, currencyName, isPlural) { if (!currencyDisplayType) { return null; } @@ -53,7 +53,9 @@ export function getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, cur } } else if (currencyDisplayType.symbol === currencyConstants.allCurrencyDisplaySymbol.Code) { symbol = currencyCode; - }else if (currencyDisplayType.symbol === currencyConstants.allCurrencyDisplaySymbol.Name) { + } else if (currencyDisplayType.symbol === currencyConstants.allCurrencyDisplaySymbol.Unit) { + symbol = currencyUnit; + } else if (currencyDisplayType.symbol === currencyConstants.allCurrencyDisplaySymbol.Name) { symbol = currencyName; } diff --git a/src/lib/i18n.js b/src/lib/i18n.js index 388014ff..f493c1a4 100644 --- a/src/lib/i18n.js +++ b/src/lib/i18n.js @@ -201,7 +201,21 @@ function getDefaultFirstDayOfWeek(translateFn) { } function getCurrencyName(currencyCode, translateFn) { - return translateFn(`currency.${currencyCode}`); + return translateFn(`currency.name.${currencyCode}`); +} + +function getCurrencyUnitName(currencyCode, isPlural, translateFn) { + const currencyInfo = currencyConstants.all[currencyCode]; + + if (currencyInfo && currencyInfo.unit) { + if (isPlural) { + return translateFn(`currency.unit.${currencyInfo.unit}.plural`); + } else { + return translateFn(`currency.unit.${currencyInfo.unit}.normal`); + } + } + + return ''; } function getAllMeridiemIndicatorNames(translateFn) { @@ -886,8 +900,9 @@ function getFormatedAmountWithCurrency(value, currencyCode, translateFn, userSto currencyDisplayType = getCurrentCurrencyDisplayType(translateFn, userStore); } + const currencyUnit = getCurrencyUnitName(currencyCode, isPlural, translateFn); const currencyName = getCurrencyName(currencyCode, translateFn); - return appendCurrencySymbol(value, currencyDisplayType, currencyCode, currencyName, isPlural); + return appendCurrencySymbol(value, currencyDisplayType, currencyCode, currencyUnit, currencyName, isPlural); } function getFormatedExchangeRateAmount(value, translateFn, userStore) { @@ -902,8 +917,9 @@ function getAdaptiveAmountRate(amount1, amount2, fromExchangeRate, toExchangeRat function getAmountPrependAndAppendText(currencyCode, userStore, settingsStore, isPlural, translateFn) { const currencyDisplayType = getCurrentCurrencyDisplayType(translateFn, userStore); + const currencyUnit = getCurrencyUnitName(currencyCode, isPlural, translateFn); const currencyName = getCurrencyName(currencyCode, translateFn); - return getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyName, isPlural); + return getAmountPrependAndAppendCurrencySymbol(currencyDisplayType, currencyCode, currencyUnit, currencyName, isPlural); } function getAllExpenseIncomeAmountColors(translateFn, expenseOrIncome) { diff --git a/src/locales/en.js b/src/locales/en.js index 5046fae2..de0919ad 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -330,165 +330,505 @@ export default { 'Kiritimati Island': 'Kiritimati Island', }, 'currency': { - 'AED': 'United Arab Emirates Dirham', - 'AFN': 'Afghan Afghani', - 'ALL': 'Albanian Lek', - 'AMD': 'Armenian Dram', - 'ANG': 'Netherlands Antillean Guilder', - 'AOA': 'Angolan Kwanza', - 'ARS': 'Argentine Peso', - 'AUD': 'Australian Dollar', - 'AWG': 'Aruban Florin', - 'AZN': 'Azerbaijan Manat', - 'BAM': 'Bosnia and Herzegovina Convertible Mark', - 'BBD': 'Barbadian Dollar', - 'BDT': 'Bangladeshi Taka', - 'BGN': 'Bulgarian Lev', - 'BHD': 'Bahraini Dinar', - 'BIF': 'Burundian Franc', - 'BMD': 'Bermudian Dollar', - 'BND': 'Brunei Dollar', - 'BOB': 'Bolivian Boliviano', - 'BRL': 'Brazilian Real', - 'BSD': 'Bahamian Dollar', - 'BTN': 'Bhutanese Ngultrum', - 'BWP': 'Botswana Pula', - 'BYN': 'Belarusian Ruble', - 'BZD': 'Belize Dollar', - 'CAD': 'Canadian Dollar', - 'CDF': 'Congolese Franc', - 'CHF': 'Swiss Franc', - 'CLP': 'Chilean Peso', - 'CNY': 'Chinese Yuan', - 'COP': 'Colombian Peso', - 'CRC': 'Costa Rican Colon', - 'CUC': 'Cuban Convertible Peso', - 'CUP': 'Cuban Peso', - 'CVE': 'Cape Verdean Escudo', - 'CZK': 'Czech Koruna', - 'DJF': 'Djiboutian Franc', - 'DKK': 'Danish Krone', - 'DOP': 'Dominican Peso', - 'DZD': 'Algerian Dinar', - 'EGP': 'Egyptian Pound', - 'ERN': 'Eritrean Nakfa', - 'ETB': 'Ethiopian Birr', - 'EUR': 'Euro', - 'FJD': 'Fijian Dollar', - 'FKP': 'Falkland Islands Pound', - 'GBP': 'British Pound', - 'GEL': 'Georgian Lari', - 'GHS': 'Ghanaian Cedi', - 'GIP': 'Gibraltar Pound', - 'GMD': 'Gambian Dalasi', - 'GNF': 'Guinean Franc', - 'GTQ': 'Guatemalan Quetzal', - 'GYD': 'Guyanese Dollar', - 'HKD': 'Hong Kong Dollar', - 'HNL': 'Honduran Lempira', - 'HTG': 'Haitian Gourde', - 'HUF': 'Hungarian Forint', - 'IDR': 'Indonesian Rupiah', - 'ILS': 'Israeli New Shekel', - 'INR': 'Indian Rupee', - 'IQD': 'Iraqi Dinar', - 'IRR': 'Iranian Rial', - 'ISK': 'Icelandic Krona', - 'JMD': 'Jamaican Dollar', - 'JOD': 'Jordanian Dinar', - 'JPY': 'Japanese Yen', - 'KES': 'Kenyan Shilling', - 'KGS': 'Kyrgyzstani Som', - 'KHR': 'Cambodian Riel', - 'KMF': 'Comorian Franc', - 'KPW': 'North Korean Won', - 'KRW': 'South Korean Won', - 'KWD': 'Kuwaiti Dinar', - 'KYD': 'Cayman Islands Dollar', - 'KZT': 'Kazakhstani Tenge', - 'LAK': 'Lao Kip', - 'LBP': 'Lebanese Pound', - 'LKR': 'Sri Lankan Rupee', - 'LRD': 'Liberian Dollar', - 'LSL': 'Lesotho Loti', - 'LYD': 'Libyan Dinar', - 'MAD': 'Moroccan Dirham', - 'MDL': 'Moldovan Leu', - 'MGA': 'Malagasy Ariary', - 'MKD': 'Macedonian Denar', - 'MMK': 'Myanmar Kyat', - 'MNT': 'Mongolian Tugrik', - 'MOP': 'Macanese Pataca', - 'MRU': 'Mauritanian Ouguiya', - 'MUR': 'Mauritian Rupee', - 'MVR': 'Maldivian Rufiyaa', - 'MWK': 'Malawian Kwacha', - 'MXN': 'Mexican Peso', - 'MYR': 'Malaysian Ringgit', - 'MZN': 'Mozambican Metical', - 'NAD': 'Namibian Dollar', - 'NGN': 'Nigerian Naira', - 'NIO': 'Nicaraguan Cordoba', - 'NOK': 'Norwegian Krone', - 'NPR': 'Nepalese Rupee', - 'NZD': 'New Zealand Dollar', - 'OMR': 'Omani Rial', - 'PAB': 'Panamanian Balboa', - 'PEN': 'Peruvian Sol', - 'PGK': 'Papua New Guinean Kina', - 'PHP': 'Philippine Peso', - 'PKR': 'Pakistani Rupee', - 'PLN': 'Polish Zloty', - 'PYG': 'Paraguayan Guarani', - 'QAR': 'Qatari Riyal', - 'RON': 'Romanian Leu', - 'RSD': 'Serbian Dinar', - 'RUB': 'Russian Ruble', - 'RWF': 'Rwandan Franc', - 'SAR': 'Saudi Riyal', - 'SBD': 'Solomon Islands Dollar', - 'SCR': 'Seychelles Rupee', - 'SDG': 'Sudanese Pound', - 'SEK': 'Swedish Krona', - 'SGD': 'Singapore Dollar', - 'SHP': 'Saint Helena Pound', - 'SLE': 'Sierra Leonean Leone', - 'SOS': 'Somali Shilling', - 'SRD': 'Surinamese Dollar', - 'SSP': 'South Sudanese Pound', - 'STN': 'Sao Tome Principe Dobra', - 'SVC': 'Salvadoran Colon', - 'SYP': 'Syrian Pound', - 'SZL': 'Swazi Lilangeni', - 'THB': 'Thai Baht', - 'TJS': 'Tajikistani Somoni', - 'TMT': 'Turkmenistani Manat', - 'TND': 'Tunisian Dinar', - 'TOP': 'Tongan Pa\'anga', - 'TRY': 'Turkish Lira', - 'TTD': 'Trinidad and Tobago Dollar', - 'TWD': 'New Taiwan Dollar', - 'TZS': 'Tanzanian Shilling', - 'UAH': 'Ukrainian Hryvnia', - 'UGX': 'Ugandan Shilling', - 'USD': 'United States Dollar', - 'UYU': 'Uruguayan Peso', - 'UZS': 'Uzbekistani Sum', - 'VED': 'Venezuelan Bolívar Digital', - 'VES': 'Venezuelan Bolívar Soberano', - 'VND': 'Vietnamese Dong', - 'VUV': 'Vanuatu Vatu', - 'WST': 'Samoan Tala', - 'XAF': 'Central African CFA Franc', - 'XCD': 'East Caribbean Dollar', - 'XOF': 'West African CFA Franc', - 'XPF': 'CFP Franc', - 'XSU': 'Ecuadorian Sucre', - 'YER': 'Yemeni Rial', - 'ZAR': 'South African Rand', - 'ZMW': 'Zambian Kwacha', - 'ZWG': 'Zimbabwe Gold', - 'ZWL': 'Zimbabwean Dollar', + 'name': { + 'AED': 'United Arab Emirates Dirham', + 'AFN': 'Afghan Afghani', + 'ALL': 'Albanian Lek', + 'AMD': 'Armenian Dram', + 'ANG': 'Netherlands Antillean Guilder', + 'AOA': 'Angolan Kwanza', + 'ARS': 'Argentine Peso', + 'AUD': 'Australian Dollar', + 'AWG': 'Aruban Florin', + 'AZN': 'Azerbaijan Manat', + 'BAM': 'Bosnia and Herzegovina Convertible Mark', + 'BBD': 'Barbadian Dollar', + 'BDT': 'Bangladeshi Taka', + 'BGN': 'Bulgarian Lev', + 'BHD': 'Bahraini Dinar', + 'BIF': 'Burundian Franc', + 'BMD': 'Bermudian Dollar', + 'BND': 'Brunei Dollar', + 'BOB': 'Bolivian Boliviano', + 'BRL': 'Brazilian Real', + 'BSD': 'Bahamian Dollar', + 'BTN': 'Bhutanese Ngultrum', + 'BWP': 'Botswana Pula', + 'BYN': 'Belarusian Ruble', + 'BZD': 'Belize Dollar', + 'CAD': 'Canadian Dollar', + 'CDF': 'Congolese Franc', + 'CHF': 'Swiss Franc', + 'CLP': 'Chilean Peso', + 'CNY': 'Chinese Yuan', + 'COP': 'Colombian Peso', + 'CRC': 'Costa Rican Colon', + 'CUC': 'Cuban Convertible Peso', + 'CUP': 'Cuban Peso', + 'CVE': 'Cape Verdean Escudo', + 'CZK': 'Czech Koruna', + 'DJF': 'Djiboutian Franc', + 'DKK': 'Danish Krone', + 'DOP': 'Dominican Peso', + 'DZD': 'Algerian Dinar', + 'EGP': 'Egyptian Pound', + 'ERN': 'Eritrean Nakfa', + 'ETB': 'Ethiopian Birr', + 'EUR': 'Euro', + 'FJD': 'Fijian Dollar', + 'FKP': 'Falkland Islands Pound', + 'GBP': 'British Pound', + 'GEL': 'Georgian Lari', + 'GHS': 'Ghanaian Cedi', + 'GIP': 'Gibraltar Pound', + 'GMD': 'Gambian Dalasi', + 'GNF': 'Guinean Franc', + 'GTQ': 'Guatemalan Quetzal', + 'GYD': 'Guyanese Dollar', + 'HKD': 'Hong Kong Dollar', + 'HNL': 'Honduran Lempira', + 'HTG': 'Haitian Gourde', + 'HUF': 'Hungarian Forint', + 'IDR': 'Indonesian Rupiah', + 'ILS': 'Israeli New Shekel', + 'INR': 'Indian Rupee', + 'IQD': 'Iraqi Dinar', + 'IRR': 'Iranian Rial', + 'ISK': 'Icelandic Krona', + 'JMD': 'Jamaican Dollar', + 'JOD': 'Jordanian Dinar', + 'JPY': 'Japanese Yen', + 'KES': 'Kenyan Shilling', + 'KGS': 'Kyrgyzstani Som', + 'KHR': 'Cambodian Riel', + 'KMF': 'Comorian Franc', + 'KPW': 'North Korean Won', + 'KRW': 'South Korean Won', + 'KWD': 'Kuwaiti Dinar', + 'KYD': 'Cayman Islands Dollar', + 'KZT': 'Kazakhstani Tenge', + 'LAK': 'Lao Kip', + 'LBP': 'Lebanese Pound', + 'LKR': 'Sri Lankan Rupee', + 'LRD': 'Liberian Dollar', + 'LSL': 'Lesotho Loti', + 'LYD': 'Libyan Dinar', + 'MAD': 'Moroccan Dirham', + 'MDL': 'Moldovan Leu', + 'MGA': 'Malagasy Ariary', + 'MKD': 'Macedonian Denar', + 'MMK': 'Myanmar Kyat', + 'MNT': 'Mongolian Tugrik', + 'MOP': 'Macanese Pataca', + 'MRU': 'Mauritanian Ouguiya', + 'MUR': 'Mauritian Rupee', + 'MVR': 'Maldivian Rufiyaa', + 'MWK': 'Malawian Kwacha', + 'MXN': 'Mexican Peso', + 'MYR': 'Malaysian Ringgit', + 'MZN': 'Mozambican Metical', + 'NAD': 'Namibian Dollar', + 'NGN': 'Nigerian Naira', + 'NIO': 'Nicaraguan Cordoba', + 'NOK': 'Norwegian Krone', + 'NPR': 'Nepalese Rupee', + 'NZD': 'New Zealand Dollar', + 'OMR': 'Omani Rial', + 'PAB': 'Panamanian Balboa', + 'PEN': 'Peruvian Sol', + 'PGK': 'Papua New Guinean Kina', + 'PHP': 'Philippine Peso', + 'PKR': 'Pakistani Rupee', + 'PLN': 'Polish Zloty', + 'PYG': 'Paraguayan Guarani', + 'QAR': 'Qatari Riyal', + 'RON': 'Romanian Leu', + 'RSD': 'Serbian Dinar', + 'RUB': 'Russian Ruble', + 'RWF': 'Rwandan Franc', + 'SAR': 'Saudi Riyal', + 'SBD': 'Solomon Islands Dollar', + 'SCR': 'Seychelles Rupee', + 'SDG': 'Sudanese Pound', + 'SEK': 'Swedish Krona', + 'SGD': 'Singapore Dollar', + 'SHP': 'Saint Helena Pound', + 'SLE': 'Sierra Leonean Leone', + 'SOS': 'Somali Shilling', + 'SRD': 'Surinamese Dollar', + 'SSP': 'South Sudanese Pound', + 'STN': 'Sao Tome Principe Dobra', + 'SVC': 'Salvadoran Colon', + 'SYP': 'Syrian Pound', + 'SZL': 'Swazi Lilangeni', + 'THB': 'Thai Baht', + 'TJS': 'Tajikistani Somoni', + 'TMT': 'Turkmenistani Manat', + 'TND': 'Tunisian Dinar', + 'TOP': 'Tongan Pa\'anga', + 'TRY': 'Turkish Lira', + 'TTD': 'Trinidad and Tobago Dollar', + 'TWD': 'New Taiwan Dollar', + 'TZS': 'Tanzanian Shilling', + 'UAH': 'Ukrainian Hryvnia', + 'UGX': 'Ugandan Shilling', + 'USD': 'United States Dollar', + 'UYU': 'Uruguayan Peso', + 'UZS': 'Uzbekistani Sum', + 'VED': 'Venezuelan Bolívar Digital', + 'VES': 'Venezuelan Bolívar Soberano', + 'VND': 'Vietnamese Dong', + 'VUV': 'Vanuatu Vatu', + 'WST': 'Samoan Tala', + 'XAF': 'Central African CFA Franc', + 'XCD': 'East Caribbean Dollar', + 'XOF': 'West African CFA Franc', + 'XPF': 'CFP Franc', + 'XSU': 'Ecuadorian Sucre', + 'YER': 'Yemeni Rial', + 'ZAR': 'South African Rand', + 'ZMW': 'Zambian Kwacha', + 'ZWG': 'Zimbabwe Gold', + 'ZWL': 'Zimbabwean Dollar', + }, + 'unit': { + 'Afghani': { + 'normal': 'Afghani', + 'plural': 'Afghanis' + }, + 'Ariary': { + 'normal': 'Ariary', + 'plural': 'Ariary' + }, + 'Baht': { + 'normal': 'Baht', + 'plural': 'Baht' + }, + 'Balboa': { + 'normal': 'Balboa', + 'plural': 'Balboas' + }, + 'Birr': { + 'normal': 'Birr', + 'plural': 'Birrs' + }, + 'Bolivar': { + 'normal': 'Bolívar', + 'plural': 'Bolívares' + }, + 'Boliviano': { + 'normal': 'Boliviano', + 'plural': 'Bolivianos' + }, + 'Cedi': { + 'normal': 'Cedi', + 'plural': 'Cedis' + }, + 'Colon': { + 'normal': 'Colon', + 'plural': 'Colones' + }, + 'Cordoba': { + 'normal': 'Córdoba', + 'plural': 'Córdobas' + }, + 'Dalasi': { + 'normal': 'Dalasi', + 'plural': 'Dalasis' + }, + 'Denar': { + 'normal': 'Denar', + 'plural': 'Denari' + }, + 'Dinar': { + 'normal': 'Dinar', + 'plural': 'Dinars' + }, + 'Dirham': { + 'normal': 'Dirham', + 'plural': 'Dirhams' + }, + 'Dobra': { + 'normal': 'Dobra', + 'plural': 'Dobras' + }, + 'Dollar': { + 'normal': 'Dollar', + 'plural': 'Dollars' + }, + 'Dong': { + 'normal': 'Dong', + 'plural': 'Dong' + }, + 'Dram': { + 'normal': 'Dram', + 'plural': 'Drams' + }, + 'Escudo': { + 'normal': 'Escudo', + 'plural': 'Escudos' + }, + 'Euro': { + 'normal': 'Euro', + 'plural': 'Euros' + }, + 'Florin': { + 'normal': 'Florin', + 'plural': 'Florin' + }, + 'Forint': { + 'normal': 'Forint', + 'plural': 'Forint' + }, + 'Franc': { + 'normal': 'Franc', + 'plural': 'Francs' + }, + 'Gourde': { + 'normal': 'Gourde', + 'plural': 'Gourdes' + }, + 'Guarani': { + 'normal': 'Guaraní', + 'plural': 'Guaraníes' + }, + 'Guilder': { + 'normal': 'Guilder', + 'plural': 'Guilders' + }, + 'Hryvnia': { + 'normal': 'Hryvnia', + 'plural': 'Hryvni' + }, + 'Kina': { + 'normal': 'Kina', + 'plural': 'Kina' + }, + 'Kip': { + 'normal': 'Kip', + 'plural': 'Kip' + }, + 'Koruna': { + 'normal': 'Koruna', + 'plural': 'Korunas' + }, + 'Krona': { + 'normal': 'Krona', + 'plural': 'Kronor' + }, + 'Krone': { + 'normal': 'Krone', + 'plural': 'Kroner' + }, + 'Kwacha': { + 'normal': 'Kwacha', + 'plural': 'Kwachas' + }, + 'Kwanza': { + 'normal': 'Kwanza', + 'plural': 'Kwanzas' + }, + 'Kyat': { + 'normal': 'Kyat', + 'plural': 'Kyats' + }, + 'Lari': { + 'normal': 'Lari', + 'plural': 'Lari' + }, + 'Lek': { + 'normal': 'Lek', + 'plural': 'Lekë' + }, + 'Lempira': { + 'normal': 'Lempira', + 'plural': 'Lempiras' + }, + 'Leone': { + 'normal': 'Leone', + 'plural': 'Leones' + }, + 'Leu': { + 'normal': 'Leu', + 'plural': 'Lei' + }, + 'Lev': { + 'normal': 'Lev', + 'plural': 'Leva' + }, + 'Lilangeni': { + 'normal': 'Lilangeni', + 'plural': 'Emalangeni' + }, + 'Lira': { + 'normal': 'Lira', + 'plural': 'Liralar' + }, + 'Loti': { + 'normal': 'Loti', + 'plural': 'Maloti' + }, + 'Manat': { + 'normal': 'Manat', + 'plural': 'Manats' + }, + 'Mark': { + 'normal': 'Mark', + 'plural': 'Marks' + }, + 'Metical': { + 'normal': 'Metical', + 'plural': 'Meticais' + }, + 'Naira': { + 'normal': 'Naira', + 'plural': 'Naira' + }, + 'Nakfa': { + 'normal': 'Nakfa', + 'plural': 'Nakfas' + }, + 'Ngultrum': { + 'normal': 'Ngultrum', + 'plural': 'Ngultrums' + }, + 'Ouguiya': { + 'normal': 'Ouguiya', + 'plural': 'Ouguiya' + }, + 'Paanga': { + 'normal': 'Paʻanga', + 'plural': 'Paʻanga' + }, + 'Pataca': { + 'normal': 'Pataca', + 'plural': 'Patacas' + }, + 'Peso': { + 'normal': 'Peso', + 'plural': 'Pesos' + }, + 'Pound': { + 'normal': 'Pound', + 'plural': 'Pounds' + }, + 'Pula': { + 'normal': 'Pula', + 'plural': 'Pula' + }, + 'Quetzal': { + 'normal': 'Quetzal', + 'plural': 'Quetzales' + }, + 'Rand': { + 'normal': 'Rand', + 'plural': 'Rand' + }, + 'Real': { + 'normal': 'Real', + 'plural': 'Reais' + }, + 'Rial': { + 'normal': 'Rial', + 'plural': 'Rials' + }, + 'Riel': { + 'normal': 'Riel', + 'plural': 'Riels' + }, + 'Ringgit': { + 'normal': 'Ringgit', + 'plural': 'Ringgit' + }, + 'Riyal': { + 'normal': 'Riyal', + 'plural': 'Riyals' + }, + 'Ruble': { + 'normal': 'Ruble', + 'plural': 'Rubles' + }, + 'Rufiyaa': { + 'normal': 'Rufiyaa', + 'plural': 'Rufiyaa' + }, + 'Rupee': { + 'normal': 'Rupee', + 'plural': 'Rupees' + }, + 'Rupiah': { + 'normal': 'Rupiah', + 'plural': 'Rupiah' + }, + 'Shekel': { + 'normal': 'Shekel', + 'plural': 'Shekels' + }, + 'Shilling': { + 'normal': 'Shilling', + 'plural': 'Shillings' + }, + 'Sol': { + 'normal': 'Sol', + 'plural': 'Soles' + }, + 'Som': { + 'normal': 'Som', + 'plural': 'Som' + }, + 'Somoni': { + 'normal': 'Somoni', + 'plural': 'Somoni' + }, + 'Sucre': { + 'normal': 'Sucre', + 'plural': 'Sucre' + }, + 'Sum': { + 'normal': 'Sum', + 'plural': 'Sum' + }, + 'Taka': { + 'normal': 'Taka', + 'plural': 'Takas' + }, + 'Tala': { + 'normal': 'Tālā', + 'plural': 'Tālā' + }, + 'Tenge': { + 'normal': 'Tenge', + 'plural': 'Tenge' + }, + 'Tugrik': { + 'normal': 'Tögrög', + 'plural': 'Tögrög' + }, + 'Vatu': { + 'normal': 'Vatu', + 'plural': 'Vatu' + }, + 'Won': { + 'normal': 'Won', + 'plural': 'Won' + }, + 'Yen': { + 'normal': 'Yen', + 'plural': 'Yen' + }, + 'Yuan': { + 'normal': 'Yuan', + 'plural': 'Yuan' + }, + 'ZiG': { + 'normal': 'ZiG', + 'plural': 'ZiG' + }, + 'Zloty': { + 'normal': 'Złoty', + 'plural': 'Złoty' + } + } }, 'category': { 'Food & Drink': 'Food & Drink', @@ -1131,6 +1471,7 @@ export default { 'Auto-update Exchange Rates Data': 'Auto-update Exchange Rates Data', 'Currency Display Mode': 'Currency Display Mode', 'Currency Code': 'Currency Code', + 'Currency Unit': 'Currency Unit', 'Currency Name': 'Currency Name', 'Currency Symbol': 'Currency Symbol', 'Expense Amount Color': 'Expense Amount Color', diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index 35aa7838..e0b7c0f1 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -330,165 +330,505 @@ export default { 'Kiritimati Island': '圣诞岛', }, 'currency': { - 'AED': '阿联酋迪拉姆', - 'AFN': '阿富汗尼', - 'ALL': '阿尔巴尼亚列克', - 'AMD': '亚美尼亚德拉姆', - 'ANG': '荷属安的列斯盾', - 'AOA': '安哥拉宽扎', - 'ARS': '阿根廷比索', - 'AUD': '澳大利亚元', - 'AWG': '阿鲁巴弗罗林', - 'AZN': '阿塞拜疆马纳特', - 'BAM': '波斯尼亚和黑塞哥维那可兑换马克', - 'BBD': '巴巴多斯元', - 'BDT': '孟加拉塔卡', - 'BGN': '保加利亚列弗', - 'BHD': '巴林第纳尔', - 'BIF': '布隆迪法郎', - 'BMD': '百慕大元', - 'BND': '文莱元', - 'BOB': '玻利维亚诺', - 'BRL': '巴西雷亚尔', - 'BSD': '巴哈马元', - 'BTN': '不丹努扎姆', - 'BWP': '博茨瓦纳普拉', - 'BYN': '白俄罗斯卢布', - 'BZD': '伯利兹元', - 'CAD': '加拿大元', - 'CDF': '刚果民主共和国刚果法郎', - 'CHF': '瑞士法郎', - 'CLP': '智利比索', - 'CNY': '人民币', - 'COP': '哥伦比亚比索', - 'CRC': '哥斯达黎加科朗', - 'CUC': '古巴可兑换比索', - 'CUP': '古巴比索', - 'CVE': '佛得角埃斯库多', - 'CZK': '捷克克朗', - 'DJF': '吉布提法郎', - 'DKK': '丹麦克朗', - 'DOP': '多米尼加比索', - 'DZD': '阿尔及利亚第纳尔', - 'EGP': '埃及镑', - 'ERN': '厄立特里亚纳克法', - 'ETB': '埃塞俄比亚比尔', - 'EUR': '欧元', - 'FJD': '斐济元', - 'FKP': '福克兰镑', - 'GBP': '英镑', - 'GEL': '格鲁吉亚拉里', - 'GHS': '加纳塞地', - 'GIP': '直布罗陀镑', - 'GMD': '冈比亚达拉西', - 'GNF': '几内亚法郎', - 'GTQ': '危地马拉格查尔', - 'GYD': '圭亚那元', - 'HKD': '港元', - 'HNL': '洪都拉斯伦皮拉', - 'HTG': '海地古德', - 'HUF': '匈牙利福林', - 'IDR': '印度尼西亚卢比', - 'ILS': '以色列新谢克尔', - 'INR': '印度卢比', - 'IQD': '伊拉克第纳尔', - 'IRR': '伊朗里亚尔', - 'ISK': '冰岛克朗', - 'JMD': '牙买加元', - 'JOD': '约旦第纳尔', - 'JPY': '日元', - 'KES': '肯尼亚先令', - 'KGS': '吉尔吉斯斯坦索姆', - 'KHR': '柬埔寨瑞尔', - 'KMF': '科摩罗法郎', - 'KPW': '朝鲜圆', - 'KRW': '韩元', - 'KWD': '科威特第纳尔', - 'KYD': '开曼群岛元', - 'KZT': '哈萨克斯坦坚戈', - 'LAK': '老挝基普', - 'LBP': '黎巴嫩镑', - 'LKR': '斯里兰卡卢比', - 'LRD': '利比里亚元', - 'LSL': '莱索托洛蒂', - 'LYD': '利比亚第纳尔', - 'MAD': '摩洛哥迪拉姆', - 'MDL': '摩尔多瓦列伊', - 'MGA': '马达加斯加阿里亚里', - 'MKD': '北马其顿代纳尔', - 'MMK': '缅甸元', - 'MNT': '蒙古图格里克', - 'MOP': '澳门元', - 'MRU': '毛里塔尼亚乌吉亚', - 'MUR': '毛里求斯卢比', - 'MVR': '马尔代夫拉菲亚', - 'MWK': '马拉维克瓦查', - 'MXN': '墨西哥比索', - 'MYR': '马来西亚林吉特', - 'MZN': '莫桑比克梅蒂卡尔', - 'NAD': '纳米比亚元', - 'NGN': '尼日利亚奈拉', - 'NIO': '尼加拉瓜科多巴', - 'NOK': '挪威克朗', - 'NPR': '尼泊尔卢比', - 'NZD': '新西兰元', - 'OMR': '阿曼里亚尔', - 'PAB': '巴拿马巴波亚', - 'PEN': '秘鲁新索尔', - 'PGK': '巴布亚新几内亚基那', - 'PHP': '菲律宾比索', - 'PKR': '巴基斯坦卢比', - 'PLN': '波兰兹罗提', - 'PYG': '巴拉圭瓜拉尼', - 'QAR': '卡塔尔里亚尔', - 'RON': '罗马尼亚列伊', - 'RSD': '塞尔维亚第纳尔', - 'RUB': '俄罗斯卢布', - 'RWF': '卢旺达法郎', - 'SAR': '沙特里亚尔', - 'SBD': '所罗门群岛元', - 'SCR': '塞舌尔卢比', - 'SDG': '苏丹镑', - 'SEK': '瑞典克朗', - 'SGD': '新加坡元', - 'SHP': '圣赫勒拿镑', - 'SLE': '塞拉利昂利昂', - 'SOS': '索马里先令', - 'SRD': '苏里南元', - 'SSP': '南苏丹镑', - 'STN': '圣多美和普林西比多布拉', - 'SVC': '萨尔瓦多科朗', - 'SYP': '叙利亚镑', - 'SZL': '斯威士兰里兰吉尼', - 'THB': '泰铢', - 'TJS': '塔吉克斯坦索莫尼', - 'TMT': '土库曼斯坦马纳特', - 'TND': '突尼斯第纳尔', - 'TOP': '汤加潘加', - 'TRY': '土耳其里拉', - 'TTD': '特立尼达和多巴哥元', - 'TWD': '新台币', - 'TZS': '坦桑尼亚先令', - 'UAH': '乌克兰格里夫尼亚', - 'UGX': '乌干达先令', - 'USD': '美元', - 'UYU': '乌拉圭比索', - 'UZS': '乌兹别克斯坦苏姆', - 'VED': '委内瑞拉数字玻利瓦尔', - 'VES': '委内瑞拉玻利瓦尔', - 'VND': '越南盾', - 'VUV': '瓦努阿图瓦图', - 'WST': '萨摩亚塔拉', - 'XAF': '中非法郎', - 'XCD': '东加勒比元', - 'XOF': '西非法郎', - 'XPF': '太平洋法郎', - 'XSU': '厄瓜多尔苏克雷', - 'YER': '也门里亚尔', - 'ZAR': '南非兰特', - 'ZMW': '赞比亚克瓦查', - 'ZWG': '津巴布韦金', - 'ZWL': '津巴布韦元', + 'name': { + 'AED': '阿联酋迪拉姆', + 'AFN': '阿富汗尼', + 'ALL': '阿尔巴尼亚列克', + 'AMD': '亚美尼亚德拉姆', + 'ANG': '荷属安的列斯盾', + 'AOA': '安哥拉宽扎', + 'ARS': '阿根廷比索', + 'AUD': '澳大利亚元', + 'AWG': '阿鲁巴弗罗林', + 'AZN': '阿塞拜疆马纳特', + 'BAM': '波斯尼亚和黑塞哥维那可兑换马克', + 'BBD': '巴巴多斯元', + 'BDT': '孟加拉塔卡', + 'BGN': '保加利亚列弗', + 'BHD': '巴林第纳尔', + 'BIF': '布隆迪法郎', + 'BMD': '百慕大元', + 'BND': '文莱元', + 'BOB': '玻利维亚诺', + 'BRL': '巴西雷亚尔', + 'BSD': '巴哈马元', + 'BTN': '不丹努扎姆', + 'BWP': '博茨瓦纳普拉', + 'BYN': '白俄罗斯卢布', + 'BZD': '伯利兹元', + 'CAD': '加拿大元', + 'CDF': '刚果民主共和国刚果法郎', + 'CHF': '瑞士法郎', + 'CLP': '智利比索', + 'CNY': '人民币', + 'COP': '哥伦比亚比索', + 'CRC': '哥斯达黎加科朗', + 'CUC': '古巴可兑换比索', + 'CUP': '古巴比索', + 'CVE': '佛得角埃斯库多', + 'CZK': '捷克克朗', + 'DJF': '吉布提法郎', + 'DKK': '丹麦克朗', + 'DOP': '多米尼加比索', + 'DZD': '阿尔及利亚第纳尔', + 'EGP': '埃及镑', + 'ERN': '厄立特里亚纳克法', + 'ETB': '埃塞俄比亚比尔', + 'EUR': '欧元', + 'FJD': '斐济元', + 'FKP': '福克兰镑', + 'GBP': '英镑', + 'GEL': '格鲁吉亚拉里', + 'GHS': '加纳塞地', + 'GIP': '直布罗陀镑', + 'GMD': '冈比亚达拉西', + 'GNF': '几内亚法郎', + 'GTQ': '危地马拉格查尔', + 'GYD': '圭亚那元', + 'HKD': '港元', + 'HNL': '洪都拉斯伦皮拉', + 'HTG': '海地古德', + 'HUF': '匈牙利福林', + 'IDR': '印度尼西亚卢比', + 'ILS': '以色列新谢克尔', + 'INR': '印度卢比', + 'IQD': '伊拉克第纳尔', + 'IRR': '伊朗里亚尔', + 'ISK': '冰岛克朗', + 'JMD': '牙买加元', + 'JOD': '约旦第纳尔', + 'JPY': '日元', + 'KES': '肯尼亚先令', + 'KGS': '吉尔吉斯斯坦索姆', + 'KHR': '柬埔寨瑞尔', + 'KMF': '科摩罗法郎', + 'KPW': '朝鲜圆', + 'KRW': '韩元', + 'KWD': '科威特第纳尔', + 'KYD': '开曼群岛元', + 'KZT': '哈萨克斯坦坚戈', + 'LAK': '老挝基普', + 'LBP': '黎巴嫩镑', + 'LKR': '斯里兰卡卢比', + 'LRD': '利比里亚元', + 'LSL': '莱索托洛蒂', + 'LYD': '利比亚第纳尔', + 'MAD': '摩洛哥迪拉姆', + 'MDL': '摩尔多瓦列伊', + 'MGA': '马达加斯加阿里亚里', + 'MKD': '北马其顿代纳尔', + 'MMK': '缅甸元', + 'MNT': '蒙古图格里克', + 'MOP': '澳门元', + 'MRU': '毛里塔尼亚乌吉亚', + 'MUR': '毛里求斯卢比', + 'MVR': '马尔代夫拉菲亚', + 'MWK': '马拉维克瓦查', + 'MXN': '墨西哥比索', + 'MYR': '马来西亚林吉特', + 'MZN': '莫桑比克梅蒂卡尔', + 'NAD': '纳米比亚元', + 'NGN': '尼日利亚奈拉', + 'NIO': '尼加拉瓜科多巴', + 'NOK': '挪威克朗', + 'NPR': '尼泊尔卢比', + 'NZD': '新西兰元', + 'OMR': '阿曼里亚尔', + 'PAB': '巴拿马巴波亚', + 'PEN': '秘鲁新索尔', + 'PGK': '巴布亚新几内亚基那', + 'PHP': '菲律宾比索', + 'PKR': '巴基斯坦卢比', + 'PLN': '波兰兹罗提', + 'PYG': '巴拉圭瓜拉尼', + 'QAR': '卡塔尔里亚尔', + 'RON': '罗马尼亚列伊', + 'RSD': '塞尔维亚第纳尔', + 'RUB': '俄罗斯卢布', + 'RWF': '卢旺达法郎', + 'SAR': '沙特里亚尔', + 'SBD': '所罗门群岛元', + 'SCR': '塞舌尔卢比', + 'SDG': '苏丹镑', + 'SEK': '瑞典克朗', + 'SGD': '新加坡元', + 'SHP': '圣赫勒拿镑', + 'SLE': '塞拉利昂利昂', + 'SOS': '索马里先令', + 'SRD': '苏里南元', + 'SSP': '南苏丹镑', + 'STN': '圣多美和普林西比多布拉', + 'SVC': '萨尔瓦多科朗', + 'SYP': '叙利亚镑', + 'SZL': '斯威士兰里兰吉尼', + 'THB': '泰铢', + 'TJS': '塔吉克斯坦索莫尼', + 'TMT': '土库曼斯坦马纳特', + 'TND': '突尼斯第纳尔', + 'TOP': '汤加潘加', + 'TRY': '土耳其里拉', + 'TTD': '特立尼达和多巴哥元', + 'TWD': '新台币', + 'TZS': '坦桑尼亚先令', + 'UAH': '乌克兰格里夫尼亚', + 'UGX': '乌干达先令', + 'USD': '美元', + 'UYU': '乌拉圭比索', + 'UZS': '乌兹别克斯坦苏姆', + 'VED': '委内瑞拉数字玻利瓦尔', + 'VES': '委内瑞拉玻利瓦尔', + 'VND': '越南盾', + 'VUV': '瓦努阿图瓦图', + 'WST': '萨摩亚塔拉', + 'XAF': '中非法郎', + 'XCD': '东加勒比元', + 'XOF': '西非法郎', + 'XPF': '太平洋法郎', + 'XSU': '厄瓜多尔苏克雷', + 'YER': '也门里亚尔', + 'ZAR': '南非兰特', + 'ZMW': '赞比亚克瓦查', + 'ZWG': '津巴布韦金', + 'ZWL': '津巴布韦元', + }, + 'unit': { + 'Afghani': { + 'normal': '阿富汗尼', + 'plural': '阿富汗尼' + }, + 'Ariary': { + 'normal': '阿里亚里', + 'plural': '阿里亚里' + }, + 'Baht': { + 'normal': '泰铢', + 'plural': '泰铢' + }, + 'Balboa': { + 'normal': '巴波亚', + 'plural': '巴波亚' + }, + 'Birr': { + 'normal': '比亚比尔', + 'plural': '比亚比尔' + }, + 'Bolivar': { + 'normal': '玻利瓦尔', + 'plural': '玻利瓦尔' + }, + 'Boliviano': { + 'normal': '玻利维亚诺', + 'plural': '玻利维亚诺' + }, + 'Cedi': { + 'normal': '塞地', + 'plural': '塞地' + }, + 'Colon': { + 'normal': '科朗', + 'plural': '科朗' + }, + 'Cordoba': { + 'normal': '科多巴', + 'plural': '科多巴' + }, + 'Dalasi': { + 'normal': '达拉西', + 'plural': '达拉西' + }, + 'Denar': { + 'normal': '代纳尔', + 'plural': '代纳尔' + }, + 'Dinar': { + 'normal': '第纳尔', + 'plural': '第纳尔' + }, + 'Dirham': { + 'normal': '迪拉姆', + 'plural': '迪拉姆' + }, + 'Dobra': { + 'normal': '多布拉', + 'plural': '多布拉' + }, + 'Dollar': { + 'normal': '元', + 'plural': '元' + }, + 'Dong': { + 'normal': '盾', + 'plural': '盾' + }, + 'Dram': { + 'normal': '德拉姆', + 'plural': '德拉姆' + }, + 'Escudo': { + 'normal': '埃斯库多', + 'plural': '埃斯库多' + }, + 'Euro': { + 'normal': '欧元', + 'plural': '欧元' + }, + 'Florin': { + 'normal': '弗罗林', + 'plural': '弗罗林' + }, + 'Forint': { + 'normal': '福林', + 'plural': '福林' + }, + 'Franc': { + 'normal': '法郎', + 'plural': '法郎' + }, + 'Gourde': { + 'normal': '古德', + 'plural': '古德' + }, + 'Guarani': { + 'normal': '瓜拉尼', + 'plural': '瓜拉尼' + }, + 'Guilder': { + 'normal': '盾', + 'plural': '盾' + }, + 'Hryvnia': { + 'normal': '格里夫尼亚', + 'plural': '格里夫尼亚' + }, + 'Kina': { + 'normal': '基那', + 'plural': '基那' + }, + 'Kip': { + 'normal': '基普', + 'plural': '基普' + }, + 'Koruna': { + 'normal': '克朗', + 'plural': '克朗' + }, + 'Krona': { + 'normal': '克朗', + 'plural': '克朗' + }, + 'Krone': { + 'normal': '克朗', + 'plural': '克朗' + }, + 'Kwacha': { + 'normal': '克瓦查', + 'plural': '克瓦查' + }, + 'Kwanza': { + 'normal': '宽扎', + 'plural': '宽扎' + }, + 'Kyat': { + 'normal': '元', + 'plural': '元' + }, + 'Lari': { + 'normal': '拉里', + 'plural': '拉里' + }, + 'Lek': { + 'normal': '列克', + 'plural': '列克' + }, + 'Lempira': { + 'normal': '伦皮拉', + 'plural': '伦皮拉' + }, + 'Leone': { + 'normal': '利昂', + 'plural': '利昂' + }, + 'Leu': { + 'normal': '列伊', + 'plural': '列伊' + }, + 'Lev': { + 'normal': '列弗', + 'plural': '列弗' + }, + 'Lilangeni': { + 'normal': '里兰吉尼', + 'plural': '里兰吉尼' + }, + 'Lira': { + 'normal': '里拉', + 'plural': '里拉' + }, + 'Loti': { + 'normal': '洛蒂', + 'plural': '洛蒂' + }, + 'Manat': { + 'normal': '马纳特', + 'plural': '马纳特' + }, + 'Mark': { + 'normal': '马克', + 'plural': '马克' + }, + 'Metical': { + 'normal': '梅蒂卡尔', + 'plural': '梅蒂卡尔' + }, + 'Naira': { + 'normal': '奈拉', + 'plural': '奈拉' + }, + 'Nakfa': { + 'normal': '纳克法', + 'plural': '纳克法' + }, + 'Ngultrum': { + 'normal': '努扎姆', + 'plural': '努扎姆' + }, + 'Ouguiya': { + 'normal': '乌吉亚', + 'plural': '乌吉亚' + }, + 'Paanga': { + 'normal': '潘加', + 'plural': '潘加' + }, + 'Pataca': { + 'normal': '元', + 'plural': '元' + }, + 'Peso': { + 'normal': '比索', + 'plural': '比索' + }, + 'Pound': { + 'normal': '镑', + 'plural': '镑' + }, + 'Pula': { + 'normal': '纳普拉', + 'plural': '纳普拉' + }, + 'Quetzal': { + 'normal': '格查尔', + 'plural': '格查尔' + }, + 'Rand': { + 'normal': '兰特', + 'plural': '兰特' + }, + 'Real': { + 'normal': '雷亚尔', + 'plural': '雷亚尔' + }, + 'Rial': { + 'normal': '里亚尔', + 'plural': '里亚尔' + }, + 'Riel': { + 'normal': '瑞尔', + 'plural': '瑞尔' + }, + 'Ringgit': { + 'normal': '林吉特', + 'plural': '林吉特' + }, + 'Riyal': { + 'normal': '里亚尔', + 'plural': '里亚尔' + }, + 'Ruble': { + 'normal': '卢布', + 'plural': '卢布' + }, + 'Rufiyaa': { + 'normal': '拉菲亚', + 'plural': '拉菲亚' + }, + 'Rupee': { + 'normal': '卢比', + 'plural': '卢比' + }, + 'Rupiah': { + 'normal': '卢比', + 'plural': '卢比' + }, + 'Shekel': { + 'normal': '谢克尔', + 'plural': '谢克尔' + }, + 'Shilling': { + 'normal': '先令', + 'plural': '先令' + }, + 'Sol': { + 'normal': '索尔', + 'plural': '索尔' + }, + 'Som': { + 'normal': '索姆', + 'plural': '索姆' + }, + 'Somoni': { + 'normal': '索莫尼', + 'plural': '索莫尼' + }, + 'Sucre': { + 'normal': '苏克雷', + 'plural': '苏克雷' + }, + 'Sum': { + 'normal': '苏姆', + 'plural': '苏姆' + }, + 'Taka': { + 'normal': '塔卡', + 'plural': '塔卡' + }, + 'Tala': { + 'normal': '塔拉', + 'plural': '塔拉' + }, + 'Tenge': { + 'normal': '坚戈', + 'plural': '坚戈' + }, + 'Tugrik': { + 'normal': '图格里克', + 'plural': '图格里克' + }, + 'Vatu': { + 'normal': '瓦图', + 'plural': '瓦图' + }, + 'Won': { + 'normal': '元', + 'plural': '元' + }, + 'Yen': { + 'normal': '元', + 'plural': '元' + }, + 'Yuan': { + 'normal': '元', + 'plural': '元' + }, + 'ZiG': { + 'normal': '津巴布韦金', + 'plural': '津巴布韦金' + }, + 'Zloty': { + 'normal': '兹罗提', + 'plural': '兹罗提' + } + } }, 'category': { 'Food & Drink': '食品饮料', @@ -1131,6 +1471,7 @@ export default { 'Auto-update Exchange Rates Data': '自动更新汇率数据', 'Currency Display Mode': '货币显示模式', 'Currency Code': '货币代码', + 'Currency Unit': '货币单位', 'Currency Name': '货币名称', 'Currency Symbol': '货币符号', 'Expense Amount Color': '支出金额颜色',