Add BYN, UAH, RUB and KZT to currency list (#33259)

This commit is contained in:
Michael Geers 2026-08-29 13:10:43 +02:00 • committed by GitHub
parent e8b5477373
commit 7dd4007cfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 1 deletions

View file

@ -75,6 +75,10 @@ const CURRENCY_SYMBOLS: Record<CURRENCY, string> = {
TRY: "₺",
MYR: "RM",
THB: "฿",
BYN: "Br",
UAH: "₴",
RUB: "₽",
KZT: "₸",
};
// list of currencies where energy price should be displayed in subunits (factor 100)
@ -94,6 +98,7 @@ const ENERGY_PRICE_IN_SUBUNIT: Partial<Record<CURRENCY, string>> = {
SEK: "öre", // Swedish öre
ZAR: "c", // South African cent
TRY: "krş", // Türkiye kuruş
BYN: "к.", // Belarusian kapeyka
};
export enum POWER_UNIT {

View file

@ -816,6 +816,10 @@ export enum CURRENCY {
TRY = "TRY",
MYR = "MYR",
THB = "THB",
BYN = "BYN",
UAH = "UAH",
RUB = "RUB",
KZT = "KZT",
}
export enum ICON_SIZE {

View file

@ -3648,7 +3648,11 @@
"ZAR",
"TRY",
"MYR",
"THB"
"THB",
"BYN",
"UAH",
"RUB",
"KZT"
]
},
"FatalError": {

View file

@ -510,6 +510,10 @@ components:
- TRY
- MYR
- THB
- BYN
- UAH
- RUB
- KZT
DeviceColorEntry:
description: Color assigned to a device for consistent UI display.
type: object