mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-07-10 01:29:41 +00:00
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
This commit is contained in:
parent
8e55b5ff55
commit
c913fc5cf6
3 changed files with 5 additions and 2 deletions
|
|
@ -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: '¥' },
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ final class CurrencyState: Sendable {
|
|||
"CHF": "CHF",
|
||||
"SEK": "kr",
|
||||
"DKK": "kr",
|
||||
"ZAR": "R"
|
||||
"ZAR": "R",
|
||||
"RON": "lei"
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue