feat: more-currency-support (#316)

* add polish and turkish lira

* add romanian lei

* code-gen
This commit is contained in:
Hayden 2023-02-25 18:13:52 -09:00 committed by GitHub
parent 729293745f
commit 70297b9d27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 14 deletions

View file

@ -1,17 +1,20 @@
export type Codes =
| "USD"
| "AUD"
| "BGN"
| "CHF"
| "DKK"
| "EUR"
| "GBP"
| "JPY"
| "ZAR"
| "AUD"
| "NOK"
| "SEK"
| "DKK"
| "INR"
| "JPY"
| "NOK"
| "PLN"
| "RMB"
| "BGN"
| "CHF";
| "RON"
| "SEK"
| "TRY"
| "USD"
| "ZAR";
export type Currency = {
code: Codes;
@ -69,6 +72,18 @@ export const currencies: Currency[] = [
symbol: "kr",
name: "Norwegian Krone",
},
{
code: "PLN",
local: "pl-PL",
symbol: "zł",
name: "Polish Zloty",
},
{
code: "RON",
local: "ro-RO",
symbol: "lei",
name: "Romanian Leu",
},
{
code: "ZAR",
local: "en-ZA",
@ -81,6 +96,12 @@ export const currencies: Currency[] = [
symbol: "kr",
name: "Swedish Krona",
},
{
code: "TRY",
local: "tr-TR",
symbol: "₺",
name: "Turkish Lira",
},
{
code: "USD",
local: "en-US",