From c913fc5cf6d2b750860ab2dd06c13bb7f5d87de6 Mon Sep 17 00:00:00 2001 From: ozymandiashh <234437643+ozymandiashh@users.noreply.github.com> Date: Fri, 3 Jul 2026 01:24:46 +0300 Subject: [PATCH] Add Romanian Leu (RON) currency support to menubar and GNOME extension The CLI already supports any ISO 4217 code dynamically via Intl.NumberFormat, but the macOS menubar app (SupportedCurrency enum) and GNOME extension (hardcoded CURRENCIES array) had fixed lists. RON was missing from both. - Add RON case to SupportedCurrency enum + displayName in AppStore.swift - Add RON symbol override ('lei') in CurrencyState.swift - Add RON entry to CURRENCIES array in gnome/indicator.js --- gnome/indicator.js | 1 + mac/Sources/CodeBurnMenubar/AppStore.swift | 3 ++- mac/Sources/CodeBurnMenubar/CurrencyState.swift | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gnome/indicator.js b/gnome/indicator.js index 36ba382..6805c4d 100644 --- a/gnome/indicator.js +++ b/gnome/indicator.js @@ -63,6 +63,7 @@ const CURRENCIES = [ { code: 'MXN', symbol: 'MX$' }, { code: 'ZAR', symbol: 'R ' }, { code: 'DKK', symbol: 'kr ' }, + { code: 'RON', symbol: 'lei ' }, { code: 'CNY', symbol: '¥' }, ]; diff --git a/mac/Sources/CodeBurnMenubar/AppStore.swift b/mac/Sources/CodeBurnMenubar/AppStore.swift index b041b2c..03e8845 100644 --- a/mac/Sources/CodeBurnMenubar/AppStore.swift +++ b/mac/Sources/CodeBurnMenubar/AppStore.swift @@ -1188,7 +1188,7 @@ final class AppStore { } enum SupportedCurrency: String, CaseIterable, Identifiable { - case USD, GBP, EUR, AUD, CAD, NZD, JPY, CNY, CHF, INR, BRL, SEK, SGD, HKD, KRW, MXN, ZAR, DKK + case USD, GBP, EUR, AUD, CAD, NZD, JPY, CNY, CHF, INR, BRL, SEK, SGD, HKD, KRW, MXN, ZAR, DKK, RON var id: String { rawValue } var displayName: String { switch self { @@ -1210,6 +1210,7 @@ enum SupportedCurrency: String, CaseIterable, Identifiable { case .MXN: "Mexican Peso" case .ZAR: "South African Rand" case .DKK: "Danish Krone" + case .RON: "Romanian Leu" } } } diff --git a/mac/Sources/CodeBurnMenubar/CurrencyState.swift b/mac/Sources/CodeBurnMenubar/CurrencyState.swift index 5fc907a..def6cf3 100644 --- a/mac/Sources/CodeBurnMenubar/CurrencyState.swift +++ b/mac/Sources/CodeBurnMenubar/CurrencyState.swift @@ -60,7 +60,8 @@ final class CurrencyState: Sendable { "CHF": "CHF", "SEK": "kr", "DKK": "kr", - "ZAR": "R" + "ZAR": "R", + "RON": "lei" ] }