Skip to content

Commit

Permalink
[chore]: modify INTL_MAPPING to use i18nify-data
Browse files Browse the repository at this point in the history
  • Loading branch information
RgnDunes committed Jun 6, 2024
1 parent 2db5ace commit 66719b8
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions packages/i18nify-js/src/modules/currency/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import CURRENCY_INFO from './data/currencyConfig.json';

export const ALLOWED_FORMAT_PARTS_KEYS = [
'nan',
'infinity',
Expand All @@ -22,30 +24,30 @@ export const ALLOWED_FORMAT_PARTS_KEYS = [

// This has been taken from here: https://docs.google.com/spreadsheets/d/13VFVLJql-IPeIV5NTR5MNzeeJp5LVkelbt4jFGUpBlE/edit?usp=sharing
export const INTL_MAPPING = {
SGD: { $: 'S$' }, // Singapore Dollar
XCD: { $: 'EC$' }, // East Caribbean Dollar
ARS: { $: 'ARS' }, // Argentine Peso
AUD: { $: 'A$' }, // Australian Dollar
BSD: { $: 'BSD' }, // Bahamian Dollar
BBD: { $: 'Bds$' }, // Barbados Dollar
BMD: { $: 'BD$' }, // Bermudian Dollar
CVE: { $: 'CVE' }, // Cabo Verde Escudo
CAD: { $: 'C$' }, // Canadian Dollar
KYD: { $: 'CI$' }, // Cayman Islands Dollar
CLP: { $: 'CLP' }, // Chilean Peso
COP: { $: 'COL$' }, // Colombian Peso
NZD: { $: 'NZ$' }, // New Zealand Dollar
CUP: { $: '$MN' }, // Cuban Peso
SVC: { $: '₡' }, // El Salvador Colon
FJD: { $: 'FJ$' }, // Fiji Dollar
GYD: { $: 'GY$' }, // Guyana Dollar
HKD: { $: 'HK$' }, // Hong Kong Dollar
JMD: { $: 'J$' }, // Jamaican Dollar
LRD: { $: 'L$' }, // Liberian Dollar
MOP: { $: 'MOP$' }, // Pataca
MXN: { $: 'Mex$' }, // Mexican Peso
NAD: { $: 'N$' }, // Namibia Dollar
SBD: { $: 'SI$' }, // Solomon Islands Dollar
SRD: { $: 'SRD' }, // Surinam Dollar
ZWL: { $: 'Z$' }, // Zimbabwe Dollar
SGD: { $: CURRENCY_INFO.SGD.symbol }, // Singapore Dollar
XCD: { $: CURRENCY_INFO.XCD.symbol }, // East Caribbean Dollar
ARS: { $: CURRENCY_INFO.ARS.symbol }, // Argentine Peso
AUD: { $: CURRENCY_INFO.AUD.symbol }, // Australian Dollar
BSD: { $: CURRENCY_INFO.BSD.symbol }, // Bahamian Dollar
BBD: { $: CURRENCY_INFO.BBD.symbol }, // Barbados Dollar
BMD: { $: CURRENCY_INFO.BMD.symbol }, // Bermudian Dollar
CVE: { $: CURRENCY_INFO.CVE.symbol }, // Cabo Verde Escudo
CAD: { $: CURRENCY_INFO.CAD.symbol }, // Canadian Dollar
KYD: { $: CURRENCY_INFO.KYD.symbol }, // Cayman Islands Dollar
CLP: { $: CURRENCY_INFO.CLP.symbol }, // Chilean Peso
COP: { $: CURRENCY_INFO.COP.symbol }, // Colombian Peso
NZD: { $: CURRENCY_INFO.NZD.symbol }, // New Zealand Dollar
CUP: { $: CURRENCY_INFO.CUP.symbol }, // Cuban Peso
SVC: { $: CURRENCY_INFO.SVC.symbol }, // El Salvador Colon
FJD: { $: CURRENCY_INFO.FJD.symbol }, // Fiji Dollar
GYD: { $: CURRENCY_INFO.GYD.symbol }, // Guyana Dollar
HKD: { $: CURRENCY_INFO.HKD.symbol }, // Hong Kong Dollar
JMD: { $: CURRENCY_INFO.JMD.symbol }, // Jamaican Dollar
LRD: { $: CURRENCY_INFO.LRD.symbol }, // Liberian Dollar
MOP: { $: CURRENCY_INFO.MOP.symbol }, // Pataca
MXN: { $: CURRENCY_INFO.MXN.symbol }, // Mexican Peso
NAD: { $: CURRENCY_INFO.NAD.symbol }, // Namibia Dollar
SBD: { $: CURRENCY_INFO.SBD.symbol }, // Solomon Islands Dollar
SRD: { $: CURRENCY_INFO.SRD.symbol }, // Surinam Dollar
ZWL: { $: CURRENCY_INFO.ZWL.symbol }, // Zimbabwe Dollar
};

0 comments on commit 66719b8

Please sign in to comment.