support currency unit name

This commit is contained in:
MaysWind
2024-08-03 16:11:17 +08:00
parent c91a56547f
commit c57f17233a
7 changed files with 1374 additions and 490 deletions
+8 -2
View File
@@ -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:
+1 -1
View File
@@ -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"`
}
+340 -162
View File
File diff suppressed because it is too large Load Diff
+6 -4
View File
@@ -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;
}
+19 -3
View File
@@ -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) {
+500 -159
View File
@@ -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',
+500 -159
View File
@@ -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': '支出金额颜色',