From 8a2d058a948f93956e058c13dd68c10f98b47dec Mon Sep 17 00:00:00 2001 From: Tisho <41396180+rionshin@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:21:05 +0200 Subject: [PATCH] ValueFormats: Currency: Add support for Bulgarian Lev (BGN) (#77333) * Add Bulgarian Lev in Currency * Adding BGN to polestar.json * Adding Bulgarian lev currency to polystat_test.json --- .../panel_tests_polystat.json | 12 ++++++++++++ .../panel-polystat/polystat_test.json | 14 +++++++++++++- .../grafana-data/src/valueFormats/categories.ts | 1 + 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/devenv/dev-dashboards-without-uid/panel_tests_polystat.json b/devenv/dev-dashboards-without-uid/panel_tests_polystat.json index 8b89c5bce35..71cbfb27f99 100644 --- a/devenv/dev-dashboards-without-uid/panel_tests_polystat.json +++ b/devenv/dev-dashboards-without-uid/panel_tests_polystat.json @@ -453,6 +453,10 @@ "text": "CFP franc (XPF)", "value": "currencyXPF" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, @@ -1612,6 +1616,10 @@ "text": "Malaysian Ringgit (RM)", "value": "currencyMYR" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, @@ -2711,6 +2719,10 @@ "text": "Malaysian Ringgit (RM)", "value": "currencyMYR" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, diff --git a/devenv/dev-dashboards/panel-polystat/polystat_test.json b/devenv/dev-dashboards/panel-polystat/polystat_test.json index 61be0f023b4..8d9bd53b78f 100644 --- a/devenv/dev-dashboards/panel-polystat/polystat_test.json +++ b/devenv/dev-dashboards/panel-polystat/polystat_test.json @@ -449,10 +449,14 @@ "text": "Malaysian Ringgit (RM)", "value": "currencyMYR" }, - { + { "text": "CFP franc (XPF)", "value": "currencyXPF" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, @@ -1612,6 +1616,10 @@ "text": "Malaysian Ringgit (RM)", "value": "currencyMYR" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, @@ -2707,6 +2715,10 @@ "text": "Malaysian Ringgit (RM)", "value": "currencyMYR" } + { + "text": "Bulgarian Lev (BGN)", + "value": "currencyBGN" + } ], "text": "currency" }, diff --git a/packages/grafana-data/src/valueFormats/categories.ts b/packages/grafana-data/src/valueFormats/categories.ts index e21e60fbf51..800dec30e07 100644 --- a/packages/grafana-data/src/valueFormats/categories.ts +++ b/packages/grafana-data/src/valueFormats/categories.ts @@ -144,6 +144,7 @@ export const getCategories = (): ValueFormatCategory[] => [ { name: 'Turkish Lira (₺)', id: 'currencyTRY', fn: currency('₺', true) }, { name: 'Malaysian Ringgit (RM)', id: 'currencyMYR', fn: currency('RM') }, { name: 'CFP franc (XPF)', id: 'currencyXPF', fn: currency('XPF') }, + { name: 'Bulgarian Lev (BGN)', id: 'currencyBGN', fn: currency('BGN') }, ], }, {