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: "₺", TRY: "₺",
MYR: "RM", MYR: "RM",
THB: "฿", THB: "฿",
BYN: "Br",
UAH: "₴",
RUB: "₽",
KZT: "₸",
}; };
// list of currencies where energy price should be displayed in subunits (factor 100) // 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 SEK: "öre", // Swedish öre
ZAR: "c", // South African cent ZAR: "c", // South African cent
TRY: "krş", // Türkiye kuruş TRY: "krş", // Türkiye kuruş
BYN: "к.", // Belarusian kapeyka
}; };
export enum POWER_UNIT { export enum POWER_UNIT {

View file

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

View file

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

View file

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