Skip to content

The open alternative to Salesforce, designed for AI.

Add missing currencies (#7441)

BOHEUSe55bb3e5cd98
diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts b/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts
index 9e86b3c8793..fcc4c3c3267 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/types/CurrencyCode.ts
@@ -1,20 +1,154 @@
export enum CurrencyCode {
+ AED = 'AED',
+ AFN = 'AFN',
+ ALL = 'ALL',
+ AMD = 'AMD',
+ ANG = 'ANG',
+ AOA = 'AOA',
+ ARS = 'ARS',
+ AUD = 'AUD',
+ AWG = 'AWG',
+ AZN = 'AZN',
+ BAM = 'BAM',
+ BBD = 'BBD',
+ BDT = 'BDT',
+ BGN = 'BGN',
+ BHD = 'BHD',
+ BIF = 'BIF',
+ BMD = 'BMD',
+ BND = 'BND',
+ BOB = 'BOB',
+ BRL = 'BRL',
+ BSD = 'BSD',
+ BTN = 'BTN',
+ BWP = 'BWP',
+ BYN = 'BYN',
+ BZD = 'BZD',
CAD = 'CAD',
+ CDF = 'CDF',
CHF = 'CHF',
+ CLP = 'CLP',
CNY = 'CNY',
+ COP = 'COP',
+ CRC = 'CRC',
+ CUP = 'CUP',
+ CVE = 'CVE',
CZK = 'CZK',
+ DJF = 'DJF',
+ DKK = 'DKK',
+ DOP = 'DOP',
+ DZD = 'DZD',
+ EGP = 'EGP',
+ ERN = 'ERN',
+ ETB = 'ETB',
EUR = 'EUR',
+ FJD = 'FJD',
+ FKP = 'FKP',
GBP = 'GBP',
+ GEL = 'GEL',
+ GHS = 'GHS',
+ GIP = 'GIP',
+ GMD = 'GMD',
+ GNF = 'GNF',
+ GTQ = 'GTQ',
+ GYD = 'GYD',
HKD = 'HKD',
+ HNL = 'HNL',
+ HTG = 'HTG',
+ HUF = 'HUF',
+ IDR = 'IDR',
+ ILS = 'ILS',
+ INR = 'INR',
+ IQD = 'IQD',
+ IRR = 'IRR',
+ ISK = 'ISK',
+ JMD = 'JMD',
+ JOD = 'JOD',
JPY = 'JPY',
- USD = 'USD',
- NOK = 'NOK',
- SEK = 'SEK',
- BHT = 'BHT',
+ KES = 'KES',
+ KGS = 'KGS',
+ KHR = 'KHR',
+ KMF = 'KMF',
+ KPW = 'KPW',
+ KRW = 'KRW',
+ KWD = 'KWD',
+ KYD = 'KYD',
+ KZT = 'KZT',
+ LAK = 'LAK',
+ LBP = 'LBP',
+ LKR = 'LKR',
+ LRD = 'LRD',
+ LSL = 'LSL',
+ LYD = 'LYD',
MAD = 'MAD',
+ MDL = 'MDL',
+ MGA = 'MGA',
+ MKD = 'MKD',
+ MMK = 'MMK',
+ MNT = 'MNT',
+ MOP = 'MOP',
+ MRU = 'MRU',
+ MUR = 'MUR',
+ MVR = 'MVR',
+ MWK = 'MWK',
+ MXN = 'MXN',
+ MYR = 'MYR',
+ MZN = 'MZN',
+ NAD = 'NAD',
+ NGN = 'NGN',
+ NIO = 'NIO',
+ NOK = 'NOK',
+ NPR = 'NPR',
+ NZD = 'NZD',
+ OMR = 'OMR',
+ PAB = 'PAB',
+ PEN = 'PEN',
+ PGK = 'PGK',
+ PHP = 'PHP',
+ PKR = 'PKR',
+ PLN = 'PLN',
+ PYG = 'PYG',
QAR = 'QAR',
- AED = 'AED',
- KRW = 'KRW',
- BRL = 'BRL',
- AUD = 'AUD',
+ RON = 'RON',
+ RSD = 'RSD',
+ RUB = 'RUB',
+ RWF = 'RWF',
+ SAR = 'SAR',
+ SBD = 'SBD',
+ SCR = 'SCR',
+ SDG = 'SDG',
+ SEK = 'SEK',
+ SGD = 'SGD',
+ SHP = 'SHP',
+ SLE = 'SLE',
+ SOS = 'SOS',
+ SRD = 'SRD',
+ SSP = 'SSP',
+ STN = 'STN',
+ SVC = 'SVC',
+ SYP = 'SYP',
+ SZL = 'SZL',
+ THB = 'THB',
+ TJS = 'TJS',
+ TMT = 'TMT',
+ TND = 'TND',
+ TOP = 'TOP',
+ TRY = 'TRY',
+ TTD = 'TTD',
+ TWD = 'TWD',
+ TZS = 'TZS',
+ UAH = 'UAH',
+ UGX = 'UGX',
+ USD = 'USD',
+ UYU = 'UYU',
+ UZS = 'UZS',
+ VES = 'VES',
+ VND = 'VND',
+ VUV = 'VUV',
+ WST = 'WST',
+ XCD = 'XCD',
+ YER = 'YER',
+ ZAR = 'ZAR',
+ ZMW = 'ZMW',
+ ZWG = 'ZWG',
}
diff --git a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts
index 5e013b50ca2..681da4b3b61 100644
--- a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts
+++ b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts
@@ -1,18 +1,56 @@
import {
+ IconCoins,
IconComponent,
+ IconCurrencyAfghani,
+ IconCurrencyBahraini,
IconCurrencyBaht,
+ IconCurrencyForint,
+ IconCurrencyDinar,
IconCurrencyDirham,
IconCurrencyDollar,
+ IconCurrencyDollarAustralian,
+ IconCurrencyDollarBrunei,
+ IconCurrencyDollarCanadian,
+ IconCurrencyDollarGuyanese,
+ IconCurrencyDollarSingapore,
+ IconCurrencyDong,
+ IconCurrencyDram,
IconCurrencyEuro,
+ IconCurrencyFlorin,
IconCurrencyFrank,
+ IconCurrencyGuarani,
+ IconCurrencyHryvnia,
+ IconCurrencyIranianRial,
+ IconCurrencyKip,
IconCurrencyKroneCzech,
+ IconCurrencyKroneDanish,
IconCurrencyKroneSwedish,
+ IconCurrencyLari,
+ IconCurrencyLeu,
+ IconCurrencyLira,
+ IconCurrencyLyd,
+ IconCurrencyManat,
+ IconCurrencyNaira,
+ IconCurrencyPaanga,
+ IconCurrencyPeso,
IconCurrencyPound,
+ IconCurrencyQuetzal,
IconCurrencyReal,
+ IconCurrencyRenminbi,
IconCurrencyRiyal,
+ IconCurrencyRubel,
+ IconCurrencyRufiyaa,
+ IconCurrencyRupee,
+ IconCurrencyRupeeNepalese,
+ IconCurrencyTaka,
+ IconCurrencyTenge,
+ IconCurrencyTugrik,
+ IconCurrencySom,
+ IconCurrencyShekel,
IconCurrencyWon,
IconCurrencyYen,
IconCurrencyYuan,
+ IconCurrencyZloty,
} from 'twenty-ui';
import { CurrencyCode } from '@/object-record/record-field/types/CurrencyCode';
@@ -21,76 +59,156 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record<
CurrencyCode,
{ label: string; Icon: IconComponent }
> = {
- USD: {
- label: 'United States dollar',
- Icon: IconCurrencyDollar,
- },
- EUR: {
- label: 'Euro',
- Icon: IconCurrencyEuro,
- },
- JPY: {
- label: 'Japanese yen',
- Icon: IconCurrencyYen,
- },
- GBP: {
- label: 'British pound',
- Icon: IconCurrencyPound,
- },
- CAD: {
- label: 'Canadian dollar',
- Icon: IconCurrencyDollar,
- },
- CHF: {
- label: 'Swiss franc',
- Icon: IconCurrencyFrank,
- },
- CNY: {
- label: 'Chinese yuan',
- Icon: IconCurrencyYuan,
- },
- CZK: {
- label: 'Czech koruna',
- Icon: IconCurrencyKroneCzech,
- },
- HKD: {
- label: 'Hong Kong dollar',
- Icon: IconCurrencyDollar,
- },
- NOK: {
- label: 'Norwegian krone',
- Icon: IconCurrencyKroneSwedish,
- },
- SEK: {
- label: 'Swedish krona',
- Icon: IconCurrencyKroneSwedish,
- },
- BHT: {
- label: 'Thai Baht',
- Icon: IconCurrencyBaht,
- },
- MAD: {
- label: 'Moroccan dirham',
- Icon: IconCurrencyDirham,
- },
- QAR: {
- label: 'Qatari riyal',
- Icon: IconCurrencyRiyal,
- },
- AED: {
- label: 'UAE dirham',
- Icon: IconCurrencyDirham,
- },
- KRW: {
- label: 'South Korean won',
- Icon: IconCurrencyWon,
- },
- BRL: {
- label: 'Brazilian real',
- Icon: IconCurrencyReal,
- },
- AUD: {
- label: 'Australian dollar',
- Icon: IconCurrencyDollar,
- },
+ AED: { label: 'UAE dirham', Icon: IconCurrencyDirham },
+ AFN: { label: 'Afghan afghani', Icon: IconCurrencyAfghani },
+ ALL: { label: 'Albanian lek', Icon: IconCurrencyLeu },
+ AMD: { label: 'Armenian dram', Icon: IconCurrencyDram },
+ ANG: { label: 'Netherlands Antillean guilder', Icon: IconCurrencyFlorin },
+ AOA: { label: 'Angolan kwanza', Icon: IconCoins },
+ ARS: { label: 'Argentine peso', Icon: IconCoins },
+ AUD: { label: 'Australian dollar', Icon: IconCurrencyDollarAustralian },
+ AWG: { label: 'Aruban florin', Icon: IconCurrencyFlorin },
+ AZN: { label: 'Azerbaijani manat', Icon: IconCurrencyManat },
+ BAM: { label: 'Bosnia and Herzegovina mark', Icon: IconCoins },
+ BBD: { label: 'Barbados dollar', Icon: IconCurrencyDollar },
+ BDT: { label: 'Bangladeshi taka', Icon: IconCurrencyTaka },
+ BGN: { label: 'Bulgarian lev', Icon: IconCoins },
+ BHD: { label: 'Bahraini dinar', Icon: IconCurrencyBahraini },
+ BIF: { label: 'Burundian franc', Icon: IconCoins },
+ BMD: { label: 'Bermudian dollar', Icon: IconCurrencyDollar },
+ BND: { label: 'Brunei dollar', Icon: IconCurrencyDollarBrunei },
+ BOB: { label: 'Boliviano', Icon: IconCoins },
+ BRL: { label: 'Brazilian real', Icon: IconCurrencyReal },
+ BSD: { label: 'Bahamian dollar', Icon: IconCurrencyDollar },
+ BTN: { label: 'Bhutanese ngultrum', Icon: IconCurrencyDollar },
+ BWP: { label: 'Botswana pula', Icon: IconCoins },
+ BYN: { label: 'Belarusian ruble', Icon: IconCoins },
+ BZD: { label: 'Belize dollar', Icon: IconCurrencyDollar },
+ CAD: { label: 'Canadian dollar', Icon: IconCurrencyDollarCanadian },
+ CDF: { label: 'Congolese franc', Icon: IconCoins },
+ CHF: { label: 'Swiss franc', Icon: IconCurrencyFrank },
+ CLP: { label: 'Chilean peso', Icon: IconCoins },
+ CNY: { label: 'Chinese yuan', Icon: IconCurrencyYuan },
+ COP: { label: 'Colombian peso', Icon: IconCoins },
+ CRC: { label: 'Costa Rican colon', Icon: IconCoins },
+ CUP: { label: 'Cuban peso', Icon: IconCoins },
+ CVE: { label: 'Cape Verdean escudo', Icon: IconCoins },
+ CZK: { label: 'Czech koruna', Icon: IconCurrencyKroneCzech },
+ DJF: { label: 'Djiboutian franc', Icon: IconCoins },
+ DKK: { label: 'Danish krone', Icon: IconCurrencyKroneDanish },
+ DOP: { label: 'Dominican peso', Icon: IconCoins },
+ DZD: { label: 'Algerian Dinar', Icon: IconCoins },
+ EGP: { label: 'Egyptian pound', Icon: IconCoins },
+ ERN: { label: 'Eritrean nakfa', Icon: IconCoins },
+ ETB: { label: 'Ethiopian birr', Icon: IconCoins },
+ EUR: { label: 'Euro', Icon: IconCurrencyEuro },
+ FJD: { label: 'Fiji dollar', Icon: IconCurrencyDollar },
+ FKP: { label: 'Falkland Islands pound', Icon: IconCoins },
+ GBP: { label: 'British pound', Icon: IconCurrencyPound },
+ GEL: { label: 'Georgian lari', Icon: IconCurrencyLari },
+ GHS: { label: 'Ghanaian cedi', Icon: IconCoins },
+ GIP: { label: 'Gibraltar pound', Icon: IconCoins },
+ GMD: { label: 'Gambian dalasi', Icon: IconCoins },
+ GNF: { label: 'Guinean franc', Icon: IconCoins },
+ GTQ: { label: 'Guatemalan quetzal', Icon: IconCurrencyQuetzal },
+ GYD: { label: 'Guyanese dollar', Icon: IconCurrencyDollarGuyanese },
+ HKD: { label: 'Hong Kong dollar', Icon: IconCurrencyRenminbi },
+ HNL: { label: 'Honduran lempira', Icon: IconCurrencyLeu },
+ HTG: { label: 'Haitian gourde', Icon: IconCoins },
+ HUF: { label: 'Hungarian forint', Icon: IconCurrencyForint },
+ IDR: { label: 'Indonesian rupiah', Icon: IconCoins },
+ ILS: { label: 'Israeli shekel', Icon: IconCurrencyShekel },
+ INR: { label: 'Indian rupee', Icon: IconCurrencyRupee },
+ IQD: { label: 'Iraqi dinar', Icon: IconCoins },
+ IRR: { label: 'Iranian rial', Icon: IconCurrencyIranianRial },
+ ISK: { label: 'Icelandic króna', Icon: IconCoins },
+ JMD: { label: 'Jamaican dollar', Icon: IconCurrencyDollar },
+ JOD: { label: 'Jordanian dinar', Icon: IconCoins },
+ JPY: { label: 'Japanese yen', Icon: IconCurrencyYen },
+ KES: { label: 'Kenyan shilling', Icon: IconCoins },
+ KGS: { label: 'Kyrgyzstani som', Icon: IconCurrencySom },
+ KHR: { label: 'Cambodian riel', Icon: IconCoins },
+ KMF: { label: 'Comoro franc', Icon: IconCoins },
+ KPW: { label: 'North Korean won', Icon: IconCurrencyWon },
+ KRW: { label: 'South Korean won', Icon: IconCurrencyWon },
+ KWD: { label: 'Kuwaiti dinar', Icon: IconCurrencyDinar },
+ KYD: { label: 'Cayman Islands dollar', Icon: IconCurrencyDollar },
+ KZT: { label: 'Kazakhstani tenge', Icon: IconCurrencyTenge },
+ LAK: { label: 'Lao kip', Icon: IconCurrencyKip },
+ LBP: { label: 'Lebanese pound', Icon: IconCoins },
+ LKR: { label: 'Sri Lankan rupee', Icon: IconCoins },
+ LRD: { label: 'Liberian dollar', Icon: IconCurrencyDollar },
+ LSL: { label: 'Lesotho loti', Icon: IconCurrencyLeu },
+ LYD: { label: 'Libyan dinar', Icon: IconCurrencyLyd },
+ MAD: { label: 'Moroccan dirham', Icon: IconCurrencyDirham },
+ MDL: { label: 'Moldovan leu', Icon: IconCurrencyLeu },
+ MGA: { label: 'Malagasy ariary', Icon: IconCoins },
+ MKD: { label: 'Macedonian denar', Icon: IconCoins },
+ MMK: { label: 'Myanmar kyat', Icon: IconCoins },
+ MNT: { label: 'Mongolian tögrög', Icon: IconCurrencyTugrik },
+ MOP: { label: 'Macanese pataca', Icon: IconCurrencyRenminbi },
+ MRU: { label: 'Mauritanian ouguiya', Icon: IconCoins },
+ MUR: { label: 'Mauritian rupee', Icon: IconCoins },
+ MVR: { label: 'Maldivian rufiyaa', Icon: IconCurrencyRufiyaa },
+ MWK: { label: 'Malawian kwacha', Icon: IconCoins },
+ MXN: { label: 'Mexican peso', Icon: IconCoins },
+ MYR: { label: 'Malaysian ringgit', Icon: IconCoins },
+ MZN: { label: 'Mozambican metical', Icon: IconCoins },
+ NAD: { label: 'Namibian dollar', Icon: IconCurrencyDollar },
+ NGN: { label: 'Nigerian naira', Icon: IconCurrencyNaira },
+ NIO: { label: 'Nicaraguan córdoba', Icon: IconCoins },
+ NOK: { label: 'Norwegian krone', Icon: IconCurrencyKroneSwedish },
+ NPR: { label: 'Nepalese rupee', Icon: IconCurrencyRupeeNepalese },
+ NZD: { label: 'New Zealand dollar', Icon: IconCurrencyDollar },
+ OMR: { label: 'Omani rial', Icon: IconCoins },
+ PAB: { label: 'Panamanian balboa', Icon: IconCoins },
+ PEN: { label: 'Peruvian sol', Icon: IconCoins },
+ PGK: { label: 'Papua New Guinean kina', Icon: IconCoins },
+ PHP: { label: 'Philippine peso', Icon: IconCurrencyPeso },
+ PKR: { label: 'Pakistani rupee', Icon: IconCoins },
+ PLN: { label: 'Polish złoty', Icon: IconCurrencyZloty },
+ PYG: { label: 'Paraguayan guaraní', Icon: IconCurrencyGuarani },
+ QAR: { label: 'Qatari riyal', Icon: IconCurrencyRiyal },
+ RON: { label: 'Romanian leu', Icon: IconCurrencyLeu },
+ RSD: { label: 'Serbian dinar', Icon: IconCoins },
+ RUB: { label: 'Russian ruble', Icon: IconCurrencyRubel },
+ RWF: { label: 'Rwandan franc', Icon: IconCoins },
+ SAR: { label: 'Saudi riyal', Icon: IconCoins },
+ SBD: { label: 'Solomon Islands dollar', Icon: IconCurrencyDollar },
+ SCR: { label: 'Seychelles rupee', Icon: IconCoins },
+ SDG: { label: 'Sudanese pound', Icon: IconCoins },
+ SEK: { label: 'Swedish krona', Icon: IconCurrencyKroneSwedish },
+ SGD: { label: 'Singapore dollar', Icon: IconCurrencyDollarSingapore },
+ SHP: { label: 'Saint Helena pound', Icon: IconCoins },
+ SLE: { label: 'Sierra Leonean leone', Icon: IconCoins },
+ SOS: { label: 'Somalian shilling', Icon: IconCoins },
+ SRD: { label: 'Surinamese dollar', Icon: IconCurrencyDollar },
+ SSP: { label: 'South Sudanese pound', Icon: IconCoins },
+ STN: { label: 'São Tomé and Príncipe dobra', Icon: IconCoins },
+ SVC: { label: 'Salvadoran colón', Icon: IconCoins },
+ SYP: { label: 'Syrian pound', Icon: IconCoins },
+ SZL: { label: 'Swazi lilangeni', Icon: IconCurrencyLeu },
+ THB: { label: 'Thai Baht', Icon: IconCurrencyBaht },
+ TJS: { label: 'Tajikistani somoni', Icon: IconCoins },
+ TMT: { label: 'Turkmenistan manat', Icon: IconCurrencyManat },
+ TND: { label: 'Tunisian dinar', Icon: IconCoins },
+ TOP: { label: 'Tongan paʻanga', Icon: IconCurrencyPaanga },
+ TRY: { label: 'Turkish lira', Icon: IconCurrencyLira },
+ TTD: { label: 'Trinidad and Tobago dollar', Icon: IconCurrencyDollar },
+ TWD: { label: 'Taiwanese dollar', Icon: IconCurrencyRenminbi },
+ TZS: { label: 'Tanzanian shilling', Icon: IconCoins },
+ UAH: { label: 'Ukrainian hryvnia', Icon: IconCurrencyHryvnia },
+ UGX: { label: 'Ugandan shilling', Icon: IconCoins },
+ USD: { label: 'United States dollar', Icon: IconCurrencyDollar },
+ UYU: { label: 'Uruguayan peso', Icon: IconCoins },
+ UZS: { label: 'Uzbekistani sum', Icon: IconCoins },
+ VES: { label: 'Venezuelan bolívar', Icon: IconCoins },
+ VND: { label: 'Vietnamese đồng', Icon: IconCurrencyDong },
+ VUV: { label: 'Vanuatu vatu', Icon: IconCoins },
+ WST: { label: 'Samoan tala', Icon: IconCoins },
+ XCD: { label: 'East Caribbean dollar', Icon: IconCurrencyDollar },
+ YER: { label: 'Yemeni rial', Icon: IconCoins },
+ ZAR: { label: 'South African rand', Icon: IconCoins },
+ ZMW: { label: 'Zambian kwacha', Icon: IconCoins },
+ ZWG: { label: 'Zimbabwe Gold', Icon: IconCoins },
};
diff --git a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts
index a7518f4e151..c2e19f37fe7 100644
--- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts
+++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts
@@ -57,19 +57,56 @@ export {
IconCreativeCommonsSa,
IconCreditCard,
IconCsv,
+ IconCurrencyAfghani,
+ IconCurrencyBahraini,
IconCurrencyBaht,
+ IconCurrencyDinar,
IconCurrencyDirham,
IconCurrencyDollar,
+ IconCurrencyDollarAustralian,
+ IconCurrencyDollarBrunei,
+ IconCurrencyDollarCanadian,
+ IconCurrencyDollarGuyanese,
+ IconCurrencyDollarSingapore,
+ IconCurrencyDong,
+ IconCurrencyDram,
IconCurrencyEuro,
+ IconCurrencyFlorin,
+ IconCurrencyForint,
IconCurrencyFrank,
+ IconCurrencyGuarani,
+ IconCurrencyHryvnia,
+ IconCurrencyIranianRial,
+ IconCurrencyKip,
IconCurrencyKroneCzech,
+ IconCurrencyKroneDanish,
IconCurrencyKroneSwedish,
+ IconCurrencyLari,
+ IconCurrencyLeu,
+ IconCurrencyLira,
+ IconCurrencyLyd,
+ IconCurrencyManat,
+ IconCurrencyNaira,
+ IconCurrencyPaanga,
+ IconCurrencyPeso,
IconCurrencyPound,
+ IconCurrencyQuetzal,
IconCurrencyReal,
+ IconCurrencyRenminbi,
IconCurrencyRiyal,
+ IconCurrencyRubel,
+ IconCurrencyRufiyaa,
+ IconCurrencyRupee,
+ IconCurrencyRupeeNepalese,
+ IconCurrencyTaka,
+ IconCurrencyTenge,
+ IconCurrencyTugrik,
+ IconCurrencySom,
+ IconCurrencyShekel,
IconCurrencyWon,
IconCurrencyYen,
IconCurrencyYuan,
+ IconCurrencyZloty,
IconDatabase,
IconDeviceFloppy,
IconDoorEnter,