Skip to content

Commit 91ead9b

Browse files
committed
Rename ang currency code to xcg
1 parent ec5a04d commit 91ead9b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/utils/extensions/CurrencyExtensions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fun FiatCurrency.getLabel(context: Context): Pair<String, String> {
5353
this == FiatCurrency.CUP_FM -> context.getString(R.string.currency_cup_fm)
5454
this == FiatCurrency.LBP -> context.getString(R.string.currency_lbp_official)
5555
this == FiatCurrency.LBP_BM -> context.getString(R.string.currency_lbp_bm)
56+
this == FiatCurrency.ANG -> Currency.getInstance(this.name).displayName
5657
// use the JVM API otherwise to get the name
5758
this.displayCode.length == 3 -> try {
5859
Currency.getInstance(this.displayCode).displayName

phoenix-ios/phoenix-ios/kotlin/KotlinExtensions+Currency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ extension FiatCurrency {
212212
case .afn : return NSLocalizedString("AFN", tableName: "Currencies", comment: "Afghan Afghani")
213213
case .all : return NSLocalizedString("ALL", tableName: "Currencies", comment: "Albanian Lek")
214214
case .amd : return NSLocalizedString("AMD", tableName: "Currencies", comment: "Armenian Dram")
215-
case .ang : return NSLocalizedString("ANG", tableName: "Currencies", comment: "Netherlands Antillean Guilder")
215+
case .ang : return NSLocalizedString("XCG", tableName: "Currencies", comment: "Netherlands Antillean Guilder")
216216
case .aoa : return NSLocalizedString("AOA", tableName: "Currencies", comment: "Angolan Kwanza")
217217
case .ars : fallthrough
218218
case .arsBm : return NSLocalizedString("ARS", tableName: "Currencies", comment: "Argentine Peso")

phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/data/AppConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ enum class FiatCurrency(override val displayCode: String, val flag: String = "
4040
AFN(displayCode = "AFN", flag = "🇦🇫"), // Afghan Afghani
4141
ALL(displayCode = "ALL", flag = "🇦🇱"), // Albanian Lek
4242
AMD(displayCode = "AMD", flag = "🇦🇲"), // Armenian Dram
43-
ANG(displayCode = "ANG", flag = "🇳🇱"), // Netherlands Antillean Guilder
43+
ANG(displayCode = "XCG", flag = "🇳🇱"), // Netherlands Antillean Guilder
4444
AOA(displayCode = "AOA", flag = "🇦🇴"), // Angolan Kwanza
4545
ARS_BM(displayCode = "ARS", flag = "🇦🇷"), // Argentine Peso (blue market)
4646
ARS(displayCode = "ARS_OFF", flag = "🇦🇷"), // Argentine Peso (official rate)

0 commit comments

Comments
 (0)