mirror of
https://github.com/hay-kot/homebox.git
synced 2025-06-26 21:58:34 +00:00
feat: more-currency-support (#316)
* add polish and turkish lira * add romanian lei * code-gen
This commit is contained in:
parent
729293745f
commit
70297b9d27
5 changed files with 36 additions and 14 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue