Add BYN, UAH, RUB and KZT to currency list (#33259)
This commit is contained in:
parent
e8b5477373
commit
7dd4007cfa
4 changed files with 18 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
6
server/mcp/openapi.json
generated
6
server/mcp/openapi.json
generated
|
|
@ -3648,7 +3648,11 @@
|
|||
"ZAR",
|
||||
"TRY",
|
||||
"MYR",
|
||||
"THB"
|
||||
"THB",
|
||||
"BYN",
|
||||
"UAH",
|
||||
"RUB",
|
||||
"KZT"
|
||||
]
|
||||
},
|
||||
"FatalError": {
|
||||
|
|
|
|||
4
server/openapi.state.yaml
generated
4
server/openapi.state.yaml
generated
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue