Skip to content

Commit

Permalink
feat(finance): currency object
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Feb 18, 2023
1 parent c8c0ca2 commit 60120b6
Show file tree
Hide file tree
Showing 8 changed files with 816 additions and 1,052 deletions.
9 changes: 7 additions & 2 deletions src/definitions/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export type FinanceDefinitions = LocaleEntry<{
credit_card: { [issuer: string]: string[] };

/**
* Currencies by their full name and their symbols (e.g. `US Dollar` -> `USD` / `$`).
* Currencies including their name, code and symbol (e.g. `US Dollar` / `USD` / `$`).
*/
currency: { [currencyName: string]: FinanceCurrencyEntryDefinitions };
currency: FinanceCurrencyEntryDefinitions[];

/**
* Types of transactions (e.g. `deposit`).
Expand All @@ -32,6 +32,11 @@ export type FinanceDefinitions = LocaleEntry<{
* The possible definitions related to currency entries.
*/
export interface FinanceCurrencyEntryDefinitions {
/**
* The full name for the currency (e.g. `US Dollar`).
*/
name: string;

/**
* The code/short text/abbreviation for the currency (e.g. `USD`).
*/
Expand Down
7 changes: 4 additions & 3 deletions src/locales/el/finance/currency.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default {
Ευρώ: {
export default [
{
name: 'Ευρώ',
code: 'EUR',
symbol: '€',
},
};
];
Loading

0 comments on commit 60120b6

Please sign in to comment.