Skip to content

Commit

Permalink
Feat/eng 6043 update currency symbols (#302)
Browse files Browse the repository at this point in the history
* feat: update turkish lira currency symbol

* feat: update other currency symbols based on wikipedia
  • Loading branch information
teebszet authored Dec 24, 2024
1 parent 890cca3 commit a367bac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions types/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type SupportedCurrency =
| 'DOP'
| 'PEN';

// source: wikipedia
export const currencySymbolMap: Record<SupportedCurrency, string> = {
USD: '$',
EUR: '€',
Expand All @@ -67,9 +68,9 @@ export const currencySymbolMap: Record<SupportedCurrency, string> = {
RUB: '₽',
AUD: '$',
NGN: '₦', // Nigerian Naira
TRY: 'TL', // Turkish Lira
INR: '', // Indian Rupee
CHF: '₣', // Swiss Franc
TRY: '', // Turkish Lira
INR: '', // Indian Rupee
CHF: '₣r.', // Swiss Franc
VND: '₫', // Vietnamese Dong
PLN: 'zł', // Polish Zloty
MYR: 'RM', // Malaysian Ringgit
Expand All @@ -81,7 +82,7 @@ export const currencySymbolMap: Record<SupportedCurrency, string> = {
PKR: '₨', // Pakistani Rupee
ZAR: 'R', // South African Rand
MXN: '$', // Mexican Peso
RON: 'L', // Romanian Leu
RON: 'lei', // Romanian Leu
GTQ: 'Q', // Guatemalan Quetzal
COP: '$', // Colombian Peso
DOP: '$', // Dominican Peso
Expand Down

0 comments on commit a367bac

Please sign in to comment.