diff --git a/src/lib/currency-data.json b/src/lib/currency-data.json index a5b296bca..aa45a332b 100644 --- a/src/lib/currency-data.json +++ b/src/lib/currency-data.json @@ -296,6 +296,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Peso Kolombia", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "ca": { @@ -595,6 +604,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso colombià", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "cs-CZ": { @@ -894,6 +912,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "kolumbijské peso", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "de-DE": { @@ -1193,6 +1220,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Kolumbianischer Peso", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "en-US": { @@ -1492,6 +1528,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Colombian Peso", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "es": { @@ -1791,6 +1836,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso colombiano", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "eu": { @@ -2090,6 +2144,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Kolonbiako pesoa", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "fr-FR": { @@ -2389,6 +2452,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso colombien", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "it-IT": { @@ -2688,6 +2760,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso colombiano", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "nl-NL": { @@ -2987,6 +3068,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Colombiaanse peso", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "pl-PL": { @@ -3286,6 +3376,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso kolumbijskie", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "pt": { @@ -3585,6 +3684,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Peso colombiano", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "pt-BR": { @@ -3884,6 +3992,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Peso colombiano", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "ro": { @@ -4183,6 +4300,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "peso columbian", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "fi": { @@ -4482,6 +4608,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Kolumbian peso", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "tr-TR": { @@ -4781,6 +4916,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Kolombiya Pesosu", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "ru-RU": { @@ -5080,6 +5224,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "Колумбийское песо", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "uk-UA": { @@ -5379,6 +5532,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "колумбійський песо", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "he": { @@ -5678,6 +5840,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "פסו קולומביאני", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "ar": { @@ -6258,6 +6429,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "콜롬비아 페소", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "ja-JP": { @@ -6557,6 +6737,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "コロンビア ペソ", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "zh-CN": { @@ -6856,6 +7045,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "哥伦比亚比索", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } }, "zh-TW": { @@ -7155,6 +7353,15 @@ "name_plural": "South African rand", "rounding": 0, "decimal_digits": 2 + }, + "COP": { + "name": "哥伦比亚比索", + "symbol_native": "$", + "symbol": "CO$", + "code": "COP", + "name_plural": "Colombian pesos", + "rounding": 0, + "decimal_digits": 0 } } } \ No newline at end of file diff --git a/src/lib/currency.ts b/src/lib/currency.ts index c98fb798a..9521c50d5 100644 --- a/src/lib/currency.ts +++ b/src/lib/currency.ts @@ -45,6 +45,7 @@ export const supportedCurrencyCodes = [ 'THB', 'VND', 'ZAR', + 'COP', ] as const export type supportedCurrencyCodeType = (typeof supportedCurrencyCodes)[number] @@ -54,16 +55,16 @@ export function defaultCurrencyList( ) { const currencies = customChoice ? [ - { - name: customChoice, - symbol_native: '', - symbol: '', - code: '', - name_plural: customChoice, - rounding: 0, - decimal_digits: 2, - }, - ] + { + name: customChoice, + symbol_native: '', + symbol: '', + code: '', + name_plural: customChoice, + rounding: 0, + decimal_digits: 2, + }, + ] : [] const allCurrencies = currencyList[locale] return currencies.concat(Object.values(allCurrencies)) diff --git a/src/scripts/generateCurrencyData.ts b/src/scripts/generateCurrencyData.ts index d6011e274..48410b619 100644 --- a/src/scripts/generateCurrencyData.ts +++ b/src/scripts/generateCurrencyData.ts @@ -37,4 +37,4 @@ const currencyList = locales.reduce((curList, locale) => { } } -fs.writeFileSync('src/lib/currency-data.json', JSON.stringify(currencyList)) +fs.writeFileSync('src/lib/currency-data.json', JSON.stringify(currencyList, null, 2))