From 9d12605154ba30a7cfd0aedc8b1e146d331c8aa8 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 08:50:42 +0200 Subject: [PATCH] Add ZAR (South African Rand) to currency list (#29620) --- assets/js/mixins/formatter.ts | 2 ++ assets/js/types/evcc.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/assets/js/mixins/formatter.ts b/assets/js/mixins/formatter.ts index 9489dd492..69d28c6b5 100644 --- a/assets/js/mixins/formatter.ts +++ b/assets/js/mixins/formatter.ts @@ -22,6 +22,7 @@ const CURRENCY_SYMBOLS: Record = { USD: "$", DKK: "kr", SEK: "kr", + ZAR: "R", }; // list of currencies where energy price should be displayed in subunits (factor 100) @@ -39,6 +40,7 @@ const ENERGY_PRICE_IN_SUBUNIT: Partial> = { USD: "¢", // US cent DKK: "øre", // Danish øre SEK: "öre", // Swedish öre + ZAR: "c", // South African cent }; export enum POWER_UNIT { diff --git a/assets/js/types/evcc.ts b/assets/js/types/evcc.ts index 067bb83c1..9377684ac 100644 --- a/assets/js/types/evcc.ts +++ b/assets/js/types/evcc.ts @@ -380,6 +380,7 @@ export enum CURRENCY { USD = "USD", DKK = "DKK", SEK = "SEK", + ZAR = "ZAR", } export enum ICON_SIZE {