forked from mirrors/homebox
feat: add INR currency and sort currencies (#141)
This commit is contained in:
parent
8e1947d971
commit
976f68252d
4 changed files with 36 additions and 29 deletions
|
@ -1,4 +1,4 @@
|
|||
export type Codes = "USD" | "EUR" | "GBP" | "JPY" | "ZAR" | "AUD" | "NOK" | "SEK" | "DKK";
|
||||
export type Codes = "USD" | "EUR" | "GBP" | "JPY" | "ZAR" | "AUD" | "NOK" | "SEK" | "DKK" | "INR";
|
||||
|
||||
export type Currency = {
|
||||
code: Codes;
|
||||
|
@ -9,16 +9,10 @@ export type Currency = {
|
|||
|
||||
export const currencies: Currency[] = [
|
||||
{
|
||||
code: "USD",
|
||||
local: "en-US",
|
||||
code: "AUD",
|
||||
local: "en-AU",
|
||||
symbol: "$",
|
||||
name: "US Dollar",
|
||||
},
|
||||
{
|
||||
code: "EUR",
|
||||
local: "de-DE",
|
||||
symbol: "€",
|
||||
name: "Euro",
|
||||
name: "Australian Dollar",
|
||||
},
|
||||
{
|
||||
code: "GBP",
|
||||
|
@ -26,30 +20,42 @@ export const currencies: Currency[] = [
|
|||
symbol: "£",
|
||||
name: "British Pound",
|
||||
},
|
||||
{
|
||||
code: "DKK",
|
||||
local: "da-DK",
|
||||
symbol: "kr",
|
||||
name: "Danish Krone",
|
||||
},
|
||||
{
|
||||
code: "EUR",
|
||||
local: "de-DE",
|
||||
symbol: "€",
|
||||
name: "Euro",
|
||||
},
|
||||
{
|
||||
code: "INR",
|
||||
local: "en-IN",
|
||||
symbol: "₹",
|
||||
name: "Indian Rupee",
|
||||
},
|
||||
{
|
||||
code: "JPY",
|
||||
local: "ja-JP",
|
||||
symbol: "¥",
|
||||
name: "Japanese Yen",
|
||||
},
|
||||
{
|
||||
code: "ZAR",
|
||||
local: "en-ZA",
|
||||
symbol: "R",
|
||||
name: "South African Rand",
|
||||
},
|
||||
{
|
||||
code: "AUD",
|
||||
local: "en-AU",
|
||||
symbol: "$",
|
||||
name: "Australian Dollar",
|
||||
},
|
||||
{
|
||||
code: "NOK",
|
||||
local: "nb-NO",
|
||||
symbol: "kr",
|
||||
name: "Norwegian Krone",
|
||||
},
|
||||
{
|
||||
code: "ZAR",
|
||||
local: "en-ZA",
|
||||
symbol: "R",
|
||||
name: "South African Rand",
|
||||
},
|
||||
{
|
||||
code: "SEK",
|
||||
local: "sv-SE",
|
||||
|
@ -57,9 +63,9 @@ export const currencies: Currency[] = [
|
|||
name: "Swedish Krona",
|
||||
},
|
||||
{
|
||||
code: "DKK",
|
||||
local: "da-DK",
|
||||
symbol: "kr",
|
||||
name: "Danish Krone",
|
||||
code: "USD",
|
||||
local: "en-US",
|
||||
symbol: "$",
|
||||
name: "US Dollar",
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue