feat: add currency swiss francs (#311)

This commit is contained in:
Adrian 2023-02-25 20:46:27 +01:00 committed by GitHub
parent a2dfa9dcef
commit a005fa5b9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 6 deletions

View file

@ -1,4 +1,17 @@
export type Codes = "USD" | "EUR" | "GBP" | "JPY" | "ZAR" | "AUD" | "NOK" | "SEK" | "DKK" | "INR" | "RMB" | "BGN";
export type Codes =
| "USD"
| "EUR"
| "GBP"
| "JPY"
| "ZAR"
| "AUD"
| "NOK"
| "SEK"
| "DKK"
| "INR"
| "RMB"
| "BGN"
| "CHF";
export type Currency = {
code: Codes;
@ -80,4 +93,10 @@ export const currencies: Currency[] = [
symbol: "lv",
name: "Bulgarian lev",
},
{
code: "CHF",
local: "de-CH",
symbol: "chf",
name: "Swiss Francs",
},
];