Commit 3abd9957 by Muhammad Hendri Committed by GitHub

Currency: Adds Indonesian IDR currency (#28363)

parent 9a241a2a
...@@ -126,6 +126,7 @@ export const getCategories = (): ValueFormatCategory[] => [ ...@@ -126,6 +126,7 @@ export const getCategories = (): ValueFormatCategory[] => [
{ name: 'South African Rand (R)', id: 'currencyZAR', fn: currency('R') }, { name: 'South African Rand (R)', id: 'currencyZAR', fn: currency('R') },
{ name: 'Indian Rupee (₹)', id: 'currencyINR', fn: currency('₹') }, { name: 'Indian Rupee (₹)', id: 'currencyINR', fn: currency('₹') },
{ name: 'South Korean Won (₩)', id: 'currencyKRW', 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[] = [ ...@@ -16,6 +16,7 @@ const formatTests: ValueFormatTest[] = [
// Currency // Currency
{ id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' }, { id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' },
{ id: 'currencyKRW', 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 // Standard
{ id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' }, { id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' },
......
...@@ -11,9 +11,10 @@ interface ValueFormatTest { ...@@ -11,9 +11,10 @@ interface ValueFormatTest {
} }
const formatTests: ValueFormatTest[] = [ const formatTests: ValueFormatTest[] = [
// Currancy // Currency
{ id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' }, { id: 'currencyUSD', decimals: 2, value: 1532.82, result: '$1.53K' },
{ id: 'currencyKRW', 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 // Typical
{ id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' }, { id: 'ms', decimals: 4, value: 0.0024, result: '0.0024 ms' },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment