add romanian lei

This commit is contained in:
Hayden 2023-02-25 18:06:06 -09:00
parent 24afa0013a
commit 0cf75597ad
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 8 additions and 1 deletions

View file

@ -27,7 +27,7 @@ func (Group) Fields() []ent.Field {
NotEmpty(),
field.Enum("currency").
Default("usd").
Values("usd", "eur", "gbp", "jpy", "zar", "aud", "nok", "sek", "dkk", "inr", "rmb", "bgn", "chf", "pln", "try"),
Values("usd", "eur", "gbp", "jpy", "zar", "aud", "nok", "sek", "dkk", "inr", "rmb", "bgn", "chf", "pln", "try", "ron"),
}
}

View file

@ -10,6 +10,7 @@ export type Codes =
| "NOK"
| "PLN"
| "RMB"
| "RON"
| "SEK"
| "TRY"
| "USD"
@ -77,6 +78,12 @@ export const currencies: Currency[] = [
symbol: "zł",
name: "Polish Zloty",
},
{
code: "RON",
local: "ro-RO",
symbol: "lei",
name: "Romanian Leu",
},
{
code: "ZAR",
local: "en-ZA",