mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Currency: Adds Indonesian IDR currency (#28363)
This commit is contained in:
parent
9a241a2a4f
commit
3abd9957aa
@ -126,6 +126,7 @@ export const getCategories = (): ValueFormatCategory[] => [
|
||||
{ name: 'South African Rand (R)', id: 'currencyZAR', fn: currency('R') },
|
||||
{ name: 'Indian Rupee (₹)', id: 'currencyINR', fn: currency('₹') },
|
||||
{ name: 'South Korean Won (₩)', id: 'currencyKRW', fn: currency('₩') },
|
||||
{ name: 'Indonesian Rupiah (Rp)', id: 'currencyIDR', fn: currency('Rp') },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -16,6 +16,7 @@ const formatTests: ValueFormatTest[] = [
|
||||
// Currency
|
||||
{ id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' },
|
||||
{ id: 'currencyKRW', decimals: 2, value: 1532.82, result: '₩1.53K' },
|
||||
{ id: 'currencyIDR', decimals: 2, value: 1532.82, result: 'Rp1.53K' },
|
||||
|
||||
// Standard
|
||||
{ id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' },
|
||||
|
@ -11,9 +11,10 @@ interface ValueFormatTest {
|
||||
}
|
||||
|
||||
const formatTests: ValueFormatTest[] = [
|
||||
// Currancy
|
||||
// Currency
|
||||
{ id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' },
|
||||
{ id: 'currencyKRW', decimals: 2, value: 1532.82, result: '₩1.53K' },
|
||||
{ id: 'currencyIDR', decimals: 2, value: 1532.82, result: 'Rp1.53K' },
|
||||
|
||||
// Typical
|
||||
{ id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' },
|
||||
|
Loading…
Reference in New Issue
Block a user