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: "₺",
|
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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
6
server/mcp/openapi.json
generated
6
server/mcp/openapi.json
generated
|
|
@ -3648,7 +3648,11 @@
|
||||||
"ZAR",
|
"ZAR",
|
||||||
"TRY",
|
"TRY",
|
||||||
"MYR",
|
"MYR",
|
||||||
"THB"
|
"THB",
|
||||||
|
"BYN",
|
||||||
|
"UAH",
|
||||||
|
"RUB",
|
||||||
|
"KZT"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"FatalError": {
|
"FatalError": {
|
||||||
|
|
|
||||||
4
server/openapi.state.yaml
generated
4
server/openapi.state.yaml
generated
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue