From e669033148da237cc078c6ee3200e18c951495d9 Mon Sep 17 00:00:00 2001 From: Thiago Delgado Pinto Date: Sat, 27 Jan 2024 14:26:43 -0300 Subject: [PATCH] Fix #22 --- generate.js | 2 ++ index.ts | 2 +- readme.md | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/generate.js b/generate.js index a0c4b49..f2f42a9 100644 --- a/generate.js +++ b/generate.js @@ -83,6 +83,8 @@ const inclusionsOrFixes = [ { countryCode: 'WS', currencyCode: 'WST' }, // Niger (NE) uses West African CFA Franc (XOF), according to Wikipedia. Thanks @danielrentz { countryCode: 'NE', currencyCode: 'XOF' }, + // Republic of the Congo (CG) uses 'Central African CFA Franc' (XAF), according to Wikipedia. Thanks @jasongitmail + { countryCode: 'CG', currencyCode: 'XAF' }, ]; let inclusions = 0; diff --git a/index.ts b/index.ts index 60b150c..243d65f 100644 --- a/index.ts +++ b/index.ts @@ -42,7 +42,7 @@ const countryToCurrency = { CC: 'AUD', CD: 'CDF', CF: 'XAF', - CG: 'CDF', + CG: 'XAF', CH: 'CHF', CI: 'XOF', CK: 'NZD', diff --git a/readme.md b/readme.md index 1131e88..4da697b 100644 --- a/readme.md +++ b/readme.md @@ -79,6 +79,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD - For `Hungary` (`HU`), the currency `HUF` is being assumed. - For `Niger` (`NE`), the currency `XOF` is being assumed. - For `Palestine` (`PS`), the currency `ILS` is being assumed. +- For `Republic of the Congo` (`CG`), the currency `XAF` is being assumed. - For `Samoa` (`WS`), the currency `WST` is being assumed. - For `South Georgia and the South Sandwich Islands` (`GS`), the currency `FKP` is being assumed. - For `South Korea` (`KR`), the currency `KRW` is being assumed.