mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
add polish and turkish lira
This commit is contained in:
parent
a6bcb36c5b
commit
24afa0013a
2 changed files with 24 additions and 10 deletions
|
@ -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"),
|
||||
Values("usd", "eur", "gbp", "jpy", "zar", "aud", "nok", "sek", "dkk", "inr", "rmb", "bgn", "chf", "pln", "try"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
export type Codes =
|
||||
| "USD"
|
||||
| "AUD"
|
||||
| "BGN"
|
||||
| "CHF"
|
||||
| "DKK"
|
||||
| "EUR"
|
||||
| "GBP"
|
||||
| "JPY"
|
||||
| "ZAR"
|
||||
| "AUD"
|
||||
| "NOK"
|
||||
| "SEK"
|
||||
| "DKK"
|
||||
| "INR"
|
||||
| "JPY"
|
||||
| "NOK"
|
||||
| "PLN"
|
||||
| "RMB"
|
||||
| "BGN"
|
||||
| "CHF";
|
||||
| "SEK"
|
||||
| "TRY"
|
||||
| "USD"
|
||||
| "ZAR";
|
||||
|
||||
export type Currency = {
|
||||
code: Codes;
|
||||
|
@ -69,6 +71,12 @@ export const currencies: Currency[] = [
|
|||
symbol: "kr",
|
||||
name: "Norwegian Krone",
|
||||
},
|
||||
{
|
||||
code: "PLN",
|
||||
local: "pl-PL",
|
||||
symbol: "zł",
|
||||
name: "Polish Zloty",
|
||||
},
|
||||
{
|
||||
code: "ZAR",
|
||||
local: "en-ZA",
|
||||
|
@ -81,6 +89,12 @@ export const currencies: Currency[] = [
|
|||
symbol: "kr",
|
||||
name: "Swedish Krona",
|
||||
},
|
||||
{
|
||||
code: "TRY",
|
||||
local: "tr-TR",
|
||||
symbol: "₺",
|
||||
name: "Turkish Lira",
|
||||
},
|
||||
{
|
||||
code: "USD",
|
||||
local: "en-US",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue