diff --git a/pkg/validators/currency.go b/pkg/validators/currency.go index e7ae48ec..d7d298e1 100644 --- a/pkg/validators/currency.go +++ b/pkg/validators/currency.go @@ -8,6 +8,7 @@ import ( const ParentAccountCurrencyPlaceholder = "---" // AllCurrencyNames represents all currency name in ISO 4217 +// Reference: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml var AllCurrencyNames = map[string]bool{ "AED": true, //UAE Dirham "AFN": true, //Afghani @@ -65,7 +66,6 @@ var AllCurrencyNames = map[string]bool{ "GYD": true, //Guyana Dollar "HKD": true, //Hong Kong Dollar "HNL": true, //Lempira - "HRK": true, //Kuna "HTG": true, //Gourde "HUF": true, //Forint "IDR": true, //Rupiah @@ -132,9 +132,8 @@ var AllCurrencyNames = map[string]bool{ "SEK": true, //Swedish Krona "SGD": true, //Singapore Dollar "SHP": true, //Saint Helena Pound - "SLE": true, //Leone (new leone) - "SLL": true, //Leone (old leone) - "SOS": true, //Somalian shilling + "SLE": true, //Leone + "SOS": true, //Somali Shilling "SRD": true, //Surinam Dollar "SSP": true, //South Sudanese Pound "STN": true, //Dobra @@ -154,9 +153,8 @@ var AllCurrencyNames = map[string]bool{ "UGX": true, //Uganda Shilling "USD": true, //US Dollar "UYU": true, //Peso Uruguayo - "UZS": true, //Uzbekistani sum - "VED": true, //Bolívar Digital - "VEF": true, //Bolívar Fuerte + "UZS": true, //Uzbekistan Sum + "VED": true, //Bolívar Soberano "VES": true, //Bolívar Soberano "VND": true, //Dong "VUV": true, //Vatu @@ -165,9 +163,11 @@ var AllCurrencyNames = map[string]bool{ "XCD": true, //East Caribbean Dollar "XOF": true, //CFA Franc BCEAO "XPF": true, //CFP Franc + "XSU": true, //Sucre "YER": true, //Yemeni Rial "ZAR": true, //Rand "ZMW": true, //Zambian Kwacha + "ZWG": true, //Zimbabwe Gold "ZWL": true, //Zimbabwe Dollar } diff --git a/src/consts/currency.js b/src/consts/currency.js index b9d34d38..6eeff0c6 100644 --- a/src/consts/currency.js +++ b/src/consts/currency.js @@ -2,6 +2,7 @@ const parentAccountCurrencyPlaceholder = '---'; const defaultCurrencySymbol = '¤'; // ISO 4217 +// Reference: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml const allCurrencies = { 'AED': { // UAE Dirham code: 'AED', @@ -227,10 +228,6 @@ const allCurrencies = { code: 'HNL', symbol: 'L' }, - 'HRK': { // Kuna - code: 'HRK', - symbol: 'kn' - }, 'HTG': { // Gourde code: 'HTG', symbol: 'G' @@ -495,15 +492,11 @@ const allCurrencies = { code: 'SHP', symbol: '£' }, - 'SLE': { // Leone (new leone) + 'SLE': { // Leone code: 'SLE', symbol: 'Le' }, - 'SLL': { // Leone (old leone) - code: 'SLL', - symbol: 'Le' - }, - 'SOS': { // Somalian shilling + 'SOS': { // Somali Shilling code: 'SOS', symbol: 'Sh.So.' }, @@ -583,17 +576,13 @@ const allCurrencies = { code: 'UYU', symbol: '$' }, - 'UZS': { // Uzbekistani sum + 'UZS': { // Uzbekistan Sum code: 'UZS' }, - 'VED': { // Bolívar Digital + 'VED': { // Bolívar Soberano code: 'VED', symbol: 'Bs.D' }, - 'VEF': { // Bolívar Fuerte - code: 'VEF', - symbol: 'Bs.F' - }, 'VES': { // Bolívar Soberano code: 'VES', symbol: 'Bs.S' @@ -623,6 +612,10 @@ const allCurrencies = { 'XPF': { // CFP Franc code: 'XPF' }, + 'XSU': { // Sucre + code: 'XSU', + symbol: 'S/.' + }, 'YER': { // Yemeni Rial code: 'YER', symbol: 'ر.ي' @@ -635,6 +628,10 @@ const allCurrencies = { code: 'ZMW', symbol: 'K' }, + 'ZWG': { // Zimbabwe Gold + code: 'ZWG', + symbol: 'ZiG' + }, 'ZWL': { // Zimbabwe Dollar code: 'ZWL', symbol: '$' diff --git a/src/locales/en.js b/src/locales/en.js index 8464947d..c0f455df 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -386,7 +386,6 @@ export default { 'GYD': 'Guyanese dollar', 'HKD': 'Hong Kong dollar', 'HNL': 'Honduran lempira', - 'HRK': 'Croatian kuna', 'HTG': 'Haitian gourde', 'HUF': 'Hungarian forint', 'IDR': 'Indonesian rupiah', @@ -450,11 +449,10 @@ export default { 'SBD': 'Solomon Islands dollar', 'SCR': 'Seychelles rupee', 'SDG': 'Sudanese pound', - 'SEK': 'Swedish krona/kronor', + 'SEK': 'Swedish krona', 'SGD': 'Singapore dollar', 'SHP': 'Saint Helena pound', 'SLE': 'Sierra Leonean leone', - 'SLL': 'Sierra Leonean leone (old leone)', 'SOS': 'Somalian shilling', 'SRD': 'Surinamese dollar', 'SSP': 'South Sudanese pound', @@ -486,9 +484,11 @@ export default { 'XCD': 'East Caribbean dollar', 'XOF': 'CFA franc BCEAO', 'XPF': 'CFP franc', + 'XSU': 'Ecuadorian sucre', 'YER': 'Yemeni rial', 'ZAR': 'South African rand', 'ZMW': 'Zambian kwacha', + 'ZWG': 'Zimbabwe gold', 'ZWL': 'Zimbabwean dollar', }, 'category': { diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index c54977ef..1f2ed2d2 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -386,7 +386,6 @@ export default { 'GYD': '圭亚那元', 'HKD': '港元', 'HNL': '洪都拉斯伦皮拉', - 'HRK': '克罗地亚库纳', 'HTG': '海地古德', 'HUF': '匈牙利福林', 'IDR': '印度尼西亚盾', @@ -454,7 +453,6 @@ export default { 'SGD': '新加坡元', 'SHP': '圣赫勒拿镑', 'SLE': '塞拉利昂利昂', - 'SLL': '塞拉利昂利昂 (旧利昂)', 'SOS': '索马里先令', 'SRD': '苏里南元', 'SSP': '南苏丹镑', @@ -486,9 +484,11 @@ export default { 'XCD': '东加勒比元', 'XOF': '非洲金融共同体法郎', 'XPF': '太平洋法郎', + 'XSU': '厄瓜多尔苏克雷', 'YER': '也门里亚尔', 'ZAR': '南非兰特', 'ZMW': '赞比亚克瓦查', + 'ZWG': '津巴布韦金', 'ZWL': '津巴布韦元', }, 'category': {