From 810bce749547527b3c6e37656ce953e9f148d9f1 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 29 May 2023 00:27:03 +0800 Subject: [PATCH] update latest available currencies --- pkg/validators/currency.go | 5 ++++- src/consts/currency.js | 16 ++++++++++++++-- src/locales/en.js | 5 ++++- src/locales/zh_Hans.js | 5 ++++- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/pkg/validators/currency.go b/pkg/validators/currency.go index cd7965a0..df623d5f 100644 --- a/pkg/validators/currency.go +++ b/pkg/validators/currency.go @@ -132,7 +132,8 @@ var AllCurrencyNames = map[string]bool{ "SEK": true, //Swedish Krona "SGD": true, //Singapore Dollar "SHP": true, //Saint Helena Pound - "SLL": true, //Leone + "SLE": true, //Leone (new leone) + "SLL": true, //Leone (old leone) "SOS": true, //Somali Shilling "SRD": true, //Surinam Dollar "SSP": true, //South Sudanese Pound @@ -154,6 +155,8 @@ var AllCurrencyNames = map[string]bool{ "USD": true, //US Dollar "UYU": true, //Peso Uruguayo "UZS": true, //Uzbekistan Sum + "VED": true, //Bolívar Digital + "VEF": true, //Bolívar Fuerte "VES": true, //Bolívar Soberano "VND": true, //Dong "VUV": true, //Vatu diff --git a/src/consts/currency.js b/src/consts/currency.js index 51340ba4..10f65d59 100644 --- a/src/consts/currency.js +++ b/src/consts/currency.js @@ -495,7 +495,11 @@ const allCurrencies = { code: 'SHP', symbol: '£' }, - 'SLL': { // Leone + 'SLE': { // Leone (new leone) + code: 'SLE', + symbol: 'Le' + }, + 'SLL': { // Leone (old leone) code: 'SLL', symbol: 'Le' }, @@ -582,9 +586,17 @@ const allCurrencies = { 'UZS': { // Uzbekistan Sum code: 'UZS' }, + 'VED': { // Bolívar Digital + code: 'VED', + symbol: 'Bs.D' + }, + 'VEF': { // Bolívar Fuerte + code: 'VEF', + symbol: 'Bs.F' + }, 'VES': { // Bolívar Soberano code: 'VES', - symbol: 'Bs.S.' + symbol: 'Bs.S' }, 'VND': { // Dong code: 'VND', diff --git a/src/locales/en.js b/src/locales/en.js index 36716f81..c12aa4ab 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -389,7 +389,8 @@ export default { 'SEK': 'Swedish krona/kronor', 'SGD': 'Singapore dollar', 'SHP': 'Saint Helena pound', - 'SLL': 'Sierra Leonean leone', + 'SLE': 'Sierra Leonean leone', + 'SLL': 'Sierra Leonean leone (old leone)', 'SOS': 'Somali shilling', 'SRD': 'Surinamese dollar', 'SSP': 'South Sudanese pound', @@ -411,6 +412,8 @@ export default { 'USD': 'United States dollar', 'UYU': 'Uruguayan peso', 'UZS': 'Uzbekistan som', + 'VED': 'Venezuelan bolívar digital', + 'VEF': 'Venezuelan bolívar fuerte', 'VES': 'Venezuelan bolívar soberano', 'VND': 'Vietnamese đồng', 'VUV': 'Vanuatu vatu', diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index bda8f3c2..7fd10480 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -389,7 +389,8 @@ export default { 'SEK': '瑞典克朗', 'SGD': '新加坡元', 'SHP': '圣赫勒拿镑', - 'SLL': '塞拉利昂利昂', + 'SLE': '塞拉利昂利昂', + 'SLL': '塞拉利昂利昂 (旧利昂)', 'SOS': '索马里先令', 'SRD': '苏里南元', 'SSP': '南苏丹镑', @@ -411,6 +412,8 @@ export default { 'USD': '美元', 'UYU': '乌拉圭比索', 'UZS': '乌兹别克斯坦苏姆', + 'VED': '委内瑞拉数字玻利瓦尔', + 'VEF': '委内瑞拉强势玻利瓦尔', 'VES': '委内瑞拉玻利瓦尔', 'VND': '越南盾', 'VUV': '瓦努阿图瓦图',