Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Add CFP Franc (XPF) to currency list (#75906)

Copilotba5883cd440f
diff --git a/frontend/src/metabase/utils/formatting/currency.unit.spec.ts b/frontend/src/metabase/utils/formatting/currency.unit.spec.ts
index ae9aaaf02b8..061f9a16b7f 100644
--- a/frontend/src/metabase/utils/formatting/currency.unit.spec.ts
+++ b/frontend/src/metabase/utils/formatting/currency.unit.spec.ts
@@ -51,6 +51,7 @@ describe("getCurrencySymbol", () => {
["NZD", "NZ$"],
["HKD", "HK$"],
["BTC", "₿"],
+ ["XPF", "CFPF"],
["OOPS", "OOPS"],
];
diff --git a/src/metabase/util/currency.cljc b/src/metabase/util/currency.cljc
index a0c90646cfb..e40d79ab20e 100644
--- a/src/metabase/util/currency.cljc
+++ b/src/metabase/util/currency.cljc
@@ -157,6 +157,7 @@
[:VND (make-currency "₫" "Vietnamese Dong" "₫" 0 0 "VND" "Vietnamese dong")]
[:XAF (make-currency "FCFA" "CFA Franc BEAC" "FCFA" 0 0 "XAF" "CFA francs BEAC")]
[:XOF (make-currency "CFA" "CFA Franc BCEAO" "CFA" 0 0 "XOF" "CFA francs BCEAO")]
+ [:XPF (make-currency "CFPF" "CFP Franc" "F" 0 0 "XPF" "CFP francs")]
[:YER (make-currency "YR" "Yemeni Rial" "ر.ي.‏" 0 0 "YER" "Yemeni rials")]
[:ZAR (make-currency "R" "South African Rand" "R" 2 0 "ZAR" "South African rand")]
[:ZMK (make-currency "ZK" "Zambian Kwacha" "ZK" 0 0 "ZMW" "Zambian kwachas")]])))