Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
feat: expand supported currencies + minor fixes (#150)
Vlad Sazonaub0f9f841c045
diff --git a/package.json b/package.jsonindex 18e1ff8..864acf4 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "pdf-invoice-generator","version": "0.1.0","private": true,- "packageManager": "[email protected]+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8",+ "packageManager": "[email protected]+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c","engines": {"node": ">=20.0.0"},diff --git a/playwright.config.ts b/playwright.config.tsindex a7d7fd3..463d591 100644--- a/playwright.config.ts+++ b/playwright.config.ts@@ -16,7 +16,7 @@ const PORT = process.env.PORT ?? 3000;// Set webServer.url and use.baseURL with the location of the WebServer respecting the correct set portconst BASE_URL = process.env.BASE_URL ?? `http://localhost:${PORT}`;-const TIMEOUT = 60 * 1000;+const TIMEOUT = 120 * 1000;/*** See https://playwright.dev/docs/test-configuration.@@ -33,7 +33,7 @@ export default defineConfig({workers: process.env.CI ? 2 : undefined,/* timeout for expect assertions */expect: {- timeout: 35_000,+ timeout: 60_000,},// /* timeout for test execution */diff --git a/src/app/(app)/components/cta-toasts/index.tsx b/src/app/(app)/components/cta-toasts/index.tsxindex bb22a4a..498e95d 100644--- a/src/app/(app)/components/cta-toasts/index.tsx+++ b/src/app/(app)/components/cta-toasts/index.tsx@@ -1,10 +1,8 @@import { Button } from "@/components/ui/button";import { umamiTrackEvent } from "@/lib/umami-analytics-track-event";import {- Coffee,GiftIcon,Heart,- HeartIcon,MessageSquare,Sparkles,Star,@@ -12,7 +10,7 @@ import {} from "lucide-react";import { GithubIcon } from "@/components/etc/github-logo";-import { DONATION_URL, GITHUB_URL } from "@/config";+import { GITHUB_URL } from "@/config";import { toast as sonnerToast } from "sonner";const FEEDBACK_URL = "https://pdfinvoicegenerator.userjot.com/";@@ -21,14 +19,6 @@ interface ToastProps {id: string | number;title: string;description: string;- showDonationButton?: boolean;-}--/**- * Randomly determines whether to show donation or feedback button- */-function randomlyShowDonationButton() {- return Math.random() < 0.5;}/**@@ -44,7 +34,6 @@ export function customPremiumToast(toast: ToastProps) {id={id}title={toast.title}description={toast.description}- showDonationButton={toast.showDonationButton}/>),{@@ -66,7 +55,6 @@ export function customDefaultToast(toast: ToastProps) {id={id}title={toast.title}description={toast.description}- showDonationButton={toast.showDonationButton}/>),{@@ -93,8 +81,7 @@ const SonnerCloseButton = (};function PremiumDonationToast(props: ToastProps) {- const { title, description, id, showDonationButton = true } = props;- const showDonationBtnRandomly = randomlyShowDonationButton();+ const { title, description, id } = props;return (<div@@ -119,9 +106,9 @@ function PremiumDonationToast(props: ToastProps) {<div className="flex gap-2"><Buttonsize="sm"- variant="outline"+ variant="default"asChild- className="h-8 flex-1 border-gray-300 text-xs transition-all duration-200 hover:bg-gray-50"+ className="h-8 flex-1 border-gray-300 text-xs transition-all duration-200 hover:scale-105"><ahref={GITHUB_URL}@@ -133,43 +120,17 @@ function PremiumDonationToast(props: ToastProps) {sonnerToast.dismiss(id);}}>- <GithubIcon className="mr-1 h-3 w-3" />+ <GithubIcon className="mr-1.5 size-3.5 fill-white" />Star on GitHub</a></Button>- {showDonationButton ? (- showDonationBtnRandomly ? (- <PremiumToastDonationButton- onClick={() => {- umamiTrackEvent(- "donate_btn_click_download_pdf_toast_premium",- );-- sonnerToast.dismiss(id);- }}- />- ) : (- <PremiumToastFeedbackButton- onClick={() => {- umamiTrackEvent(- "feedback_btn_click_download_pdf_toast_premium",- );-- sonnerToast.dismiss(id);- }}- />- )- ) : (- <PremiumToastFeedbackButton- onClick={() => {- umamiTrackEvent(- "feedback_btn_click_download_pdf_toast_premium",- );+ <PremiumToastFeedbackButton+ onClick={() => {+ umamiTrackEvent("feedback_btn_click_download_pdf_toast_premium");- sonnerToast.dismiss(id);- }}- />- )}+ sonnerToast.dismiss(id);+ }}+ /></div></div></div>@@ -182,7 +143,8 @@ function PremiumToastFeedbackButton(return (<Buttonsize="sm"- className="h-8 flex-1 bg-gradient-to-r from-green-500 to-blue-600 text-xs text-white transition-all duration-200 hover:from-green-600 hover:to-blue-700 hover:shadow-lg"+ className="h-8 flex-1 border border-gray-300 bg-gray-100 text-xs text-gray-900 transition-all duration-200 hover:bg-gray-200"+ variant="secondary"asChilddata-testid="toast-cta-btn">@@ -199,34 +161,8 @@ function PremiumToastFeedbackButton();}-function PremiumToastDonationButton(- props: React.AnchorHTMLAttributes<HTMLAnchorElement>,-) {- return (- <Button- size="sm"- className="h-8 flex-1 bg-gradient-to-r from-indigo-500 to-purple-600 text-xs text-white transition-all duration-200 hover:from-indigo-600 hover:to-purple-700 hover:shadow-lg"- asChild- data-testid="toast-cta-btn"- >- <a- href={DONATION_URL}- target="_blank"- rel="noopener noreferrer"- {...props}- >- <HeartIcon className="mr-1 h-3 w-3 fill-current" />- Donate $5- </a>- </Button>- );-}-function DefaultDonationToast(props: ToastProps) {- const { title, description, id, showDonationButton = true } = props;-- // Randomly determine whether to show donation or feedback button- const showDonationBtnRandomly = randomlyShowDonationButton();+ const { title, description, id } = props;return (<div@@ -250,7 +186,7 @@ function DefaultDonationToast(props: ToastProps) {<div className="flex gap-2"><Buttonsize="sm"- className="h-7 bg-gray-900 px-3 text-xs font-medium text-white transition-all duration-200 hover:scale-105 hover:bg-gray-800"+ className="group h-8 bg-gray-900 px-3 text-xs font-medium text-white transition-all duration-200 hover:scale-105 hover:bg-gray-800"asChild><a@@ -263,79 +199,31 @@ function DefaultDonationToast(props: ToastProps) {sonnerToast.dismiss(id);}}>- <Star className="mr-1 h-3 w-3" />+ <Star className="mr-1 size-3.5 fill-yellow-300 text-yellow-300" />Star on GitHub</a></Button>- {showDonationButton ? (- showDonationBtnRandomly ? (- <DefaultToastDonationButton- onClick={() => {- umamiTrackEvent(- "donate_btn_click_download_pdf_toast_default",- );-- sonnerToast.dismiss(id);- }}- />- ) : (- <DefaultToastFeedbackButton- onClick={() => {- umamiTrackEvent(- "feedback_btn_click_download_pdf_toast_default",- );-- sonnerToast.dismiss(id);- }}- />- )- ) : (- <DefaultToastFeedbackButton- onClick={() => {- umamiTrackEvent(- "feedback_btn_click_download_pdf_toast_default",- );+ <DefaultToastFeedbackButton+ onClick={() => {+ umamiTrackEvent("feedback_btn_click_download_pdf_toast_default");- sonnerToast.dismiss(id);- }}- />- )}+ sonnerToast.dismiss(id);+ }}+ /></div></div></div>);}-function DefaultToastDonationButton(- props: React.AnchorHTMLAttributes<HTMLAnchorElement>,-) {- return (- <Button- size="sm"- className="h-7 bg-gradient-to-r from-pink-500 to-purple-600 px-3 text-xs font-medium text-white shadow-lg transition-all duration-200 hover:scale-105 hover:from-pink-600 hover:to-purple-700"- asChild- data-testid="toast-cta-btn"- >- <a- href={DONATION_URL}- target="_blank"- rel="noopener noreferrer"- {...props}- >- <Coffee className="mr-1 h-3 w-3" />- Donate $5- </a>- </Button>- );-}-function DefaultToastFeedbackButton(props: React.AnchorHTMLAttributes<HTMLAnchorElement>,) {return (<Buttonsize="sm"- className="h-7 bg-gradient-to-r from-green-500 to-blue-600 px-3 text-xs font-medium text-white shadow-lg transition-all duration-200 hover:scale-105 hover:from-green-600 hover:to-blue-700"+ className="h-8 flex-1 border border-gray-300 bg-gray-100 text-xs text-gray-900 transition-all duration-200 hover:bg-gray-200"+ variant="secondary"asChilddata-testid="toast-cta-btn">@@ -351,3 +239,22 @@ function DefaultToastFeedbackButton(</Button>);}++export const showRandomCTAToast = () => {+ // Randomly show either default or premium donation toast+ if (Math.random() <= 0.5) {+ customPremiumToast({+ id: "premium-donation-toast-client-page",+ title: "Support My Work",+ description:+ "Your contribution helps me maintain and improve this project for everyone! 🚀",+ });+ } else {+ customDefaultToast({+ id: "default-donation-toast-client-page",+ title: "Love this project?",+ description:+ "Help me keep this free tool running! Your support enables me to add new features and maintain the service. 🙏",+ });+ }+};diff --git a/src/app/(app)/components/invoice-pdf-download-link.tsx b/src/app/(app)/components/invoice-pdf-download-link.tsxindex f6aa69e..9e90abe 100644--- a/src/app/(app)/components/invoice-pdf-download-link.tsx+++ b/src/app/(app)/components/invoice-pdf-download-link.tsx@@ -123,7 +123,7 @@ export function InvoicePDFDownloadLink({"Your support helps me keep this free tool running and build even better features! 🙏",});}- }, 2500);+ }, 4000);}},[diff --git a/src/app/(app)/hooks/use-engagement-cta.tsx b/src/app/(app)/hooks/use-engagement-cta.tsxnew file mode 100644index 0000000..ecd380b--- /dev/null+++ b/src/app/(app)/hooks/use-engagement-cta.tsx@@ -0,0 +1,46 @@+"use client";++import { useEffect } from "react";+import { showRandomCTAToast } from "../components/cta-toasts";++const CTA_TOAST_SHOWN_LOCAL_STORAGE_KEY = "EASY_INVOICE_CTA_TOAST_SHOWN";+const INTERACTION_COUNT_THRESHOLD = 2;+const DELAY_BEFORE_SHOWING_CTA_TOAST = 15_000;++/**+ * This hook is used to show a CTA toast after a certain number of interactions with the page.+ */+export function useShowRandomCTAToastOnEngagement() {+ useEffect(() => {+ if (process.env.NODE_ENV !== "production") return;++ const hasShown = localStorage.getItem(CTA_TOAST_SHOWN_LOCAL_STORAGE_KEY);++ if (hasShown) return;++ let interactionCount = 0;+ let timer: ReturnType<typeof setTimeout> | null = null;++ const handleInteraction = () => {+ interactionCount++;++ if (interactionCount === INTERACTION_COUNT_THRESHOLD) {+ timer = setTimeout(() => {+ showRandomCTAToast();+ localStorage.setItem(CTA_TOAST_SHOWN_LOCAL_STORAGE_KEY, "true");+ }, DELAY_BEFORE_SHOWING_CTA_TOAST);++ window.removeEventListener("click", handleInteraction);+ }+ };++ window.addEventListener("click", handleInteraction);++ return () => {+ window.removeEventListener("click", handleInteraction);+ if (timer) {+ clearTimeout(timer);+ }+ };+ }, []);+}diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsxindex 7f8ee4a..6465d6b 100644--- a/src/app/(app)/page.client.tsx+++ b/src/app/(app)/page.client.tsx@@ -44,12 +44,9 @@ import { useCallback, useEffect, useState } from "react";import { toast } from "sonner";import { z } from "zod";import { InvoiceClientPage } from "./components";-import {- customDefaultToast,- customPremiumToast,-} from "./components/cta-toasts";import { InvoicePDFDownloadLink } from "./components/invoice-pdf-download-link";import { handleInvoiceNumberBreakingChange } from "./utils/invoice-number-breaking-change";+import { useShowRandomCTAToastOnEngagement } from "./hooks/use-engagement-cta";// import { DevLocalStorageView } from "./components/dev/dev-local-storage-view";// import { InvoicePDFDownloadMultipleLanguages } from "./components/invoice-pdf-download-multiple-languages";@@ -89,6 +86,8 @@ export function AppPageClient({const [canShareInvoice, setCanShareInvoice] = useState(true);+ useShowRandomCTAToastOnEngagement();+// Helper function to load from localStorageconst loadFromLocalStorage = useCallback(() => {try {@@ -304,21 +303,6 @@ export function AppPageClient({}}, [invoiceDataState, router, searchParams]);- // Show CTA toast- useEffect(() => {- // only show on production- if (process.env.NODE_ENV !== "production") {- return;- }-- // Show cta toast after x seconds on the app page- const initialTimer = setTimeout(showCTAToast, 25_000);-- return () => {- clearTimeout(initialTimer);- };- }, []);-const handleInvoiceDataChange = (updatedData: InvoiceData) => {setInvoiceDataState(updatedData);};@@ -383,11 +367,6 @@ export function AppPageClient({"Share this link to let others view and edit this invoice",});- // Show CTA toast after 5 seconds- setTimeout(() => {- showCTAToast();- }, 5000);-// analytics track eventumamiTrackEvent("share_invoice_link");} catch (error) {@@ -657,24 +636,3 @@ function ProjectInfo() {</>);}--const showCTAToast = () => {- // Randomly show either default or premium donation toast- if (Math.random() <= 0.5) {- customPremiumToast({- id: "premium-donation-toast-client-page",- title: "Support My Work",- description:- "Your contribution helps me maintain and improve this project for everyone! 🚀",- showDonationButton: false,- });- } else {- customDefaultToast({- id: "default-donation-toast-client-page",- title: "Love this project?",- description:- "Help me keep this free tool running! Your support enables me to add new features and maintain the service. 🙏",- showDonationButton: false,- });- }-};diff --git a/src/app/[locale]/about/components/landing-cta-toast.tsx b/src/app/[locale]/about/components/landing-cta-toast.tsxindex e1c24ac..9801ee0 100644--- a/src/app/[locale]/about/components/landing-cta-toast.tsx+++ b/src/app/[locale]/about/components/landing-cta-toast.tsx@@ -32,7 +32,6 @@ export const LandingCtaToast = () => {title: "Support My Work",description:"Your contribution helps me maintain and improve this project for everyone! 🚀",- showDonationButton: false, // we only want to show the donation button on the app page});} else {customDefaultToast({@@ -40,7 +39,6 @@ export const LandingCtaToast = () => {title: "Love this project?",description:"Help me keep building amazing tools! Your support means the world to me. ✨",- showDonationButton: false, // we only want to show the donation button on the app page});}};diff --git a/src/app/schema/index.ts b/src/app/schema/index.tsindex 08a431b..ca90252 100644--- a/src/app/schema/index.ts+++ b/src/app/schema/index.ts@@ -2,39 +2,45 @@ import { z } from "zod";import dayjs from "dayjs";export const SUPPORTED_CURRENCIES = [+ // Top currencies (pinned)"EUR", // Euro"USD", // US Dollar"PLN", // Polish Złoty"GBP", // British Pound+ // Major global currencies"JPY", // Japanese Yen- "CNY", // Chinese Yuan (RMB)- "CHF", // Swiss Franc- "CAD", // Canadian Dollar"AUD", // Australian Dollar+ "CAD", // Canadian Dollar+ "CHF", // Swiss Franc+ "CNY", // Chinese Yuan (RMB)"HKD", // Hong Kong Dollar"SGD", // Singapore Dollar+ "SEK", // Swedish Krona+ "NOK", // Norwegian Krone+ "DKK", // Danish Krone+ "NZD", // New Zealand Dollar++ // Large emerging markets"INR", // Indian Rupee"KRW", // South Korean Won- "BRL", // Brazilian Real- "RUB", // Russian Ruble- "TWD", // Taiwan Dollar- "SEK", // Swedish Krona"MXN", // Mexican Peso- "NZD", // New Zealand Dollar- "TRY", // Turkish Lira+ "BRL", // Brazilian Real"ZAR", // South African Rand- "NOK", // Norwegian Krone- "DKK", // Danish Krone- "ILS", // Israeli New Shekel- "CZK", // Czech Koruna- "HUF", // Hungarian Forint- "UAH", // Ukrainian Hryvnia- "BYN", // Belarusian Ruble- "ARS", // Argentine Peso- "PKR", // Pakistani Rupee- "SAR", // Saudi Riyal+ "TRY", // Turkish Lira+ "RUB", // Russian Ruble++ // Southeast Asia+ "THB", // Thai Baht+ "MYR", // Malaysian Ringgit+ "IDR", // Indonesian Rupiah+ "PHP", // Philippine Peso+ "VND", // Vietnamese Dong++ // Middle East & Gulf"AED", // UAE Dirham+ "SAR", // Saudi Riyal+ "ILS", // Israeli New Shekel"QAR", // Qatari Riyal"KWD", // Kuwaiti Dinar"BHD", // Bahraini Dinar@@ -42,44 +48,90 @@ export const SUPPORTED_CURRENCIES = ["JOD", // Jordanian Dinar"EGP", // Egyptian Pound"LBP", // Lebanese Pound+ "IQD", // Iraqi Dinar++ // Eastern Europe+ "CZK", // Czech Koruna+ "HUF", // Hungarian Forint+ "RON", // Romanian Leu+ "BGN", // Bulgarian Lev+ "HRK", // Croatian Kuna (obsolete since 2023 - retained for historical invoices)+ "RSD", // Serbian Dinar+ "UAH", // Ukrainian Hryvnia+ "BYN", // Belarusian Ruble+ "MDL", // Moldovan Leu+ "GEL", // Georgian Lari+ "KZT", // Kazakhstani Tenge++ // Latin America+ "ARS", // Argentine Peso+ "CLP", // Chilean Peso+ "COP", // Colombian Peso+ "PEN", // Peruvian Sol+ "UYU", // Uruguayan Peso+ "BOB", // Bolivian Boliviano++ // South Asia+ "PKR", // Pakistani Rupee+ "BDT", // Bangladeshi Taka+ "LKR", // Sri Lankan Rupee+ "NPR", // Nepalese Rupee++ // Africa+ "NGN", // Nigerian Naira+ "KES", // Kenyan Shilling+ "GHS", // Ghanaian Cedi+ "ETB", // Ethiopian Birr+ "MAD", // Moroccan Dirham+ "TND", // Tunisian Dinar++ // Other+ "ISK", // Icelandic Króna+ "TWD", // Taiwan Dollar] as const satisfies string[];export type SupportedCurrencies = (typeof SUPPORTED_CURRENCIES)[number];export const CURRENCY_SYMBOLS = {+ // Top currencies (pinned)EUR: "€", // EuroUSD: "$", // US Dollar-- CAD: "$", // Canadian Dollar- AUD: "$", // Australian DollarGBP: "£", // British PoundPLN: "zł", // Polish Złoty- RUB: "₽", // Russian Ruble- UAH: "₴", // Ukrainian Hryvnia- BYN: "Br", // Belarusian Ruble- BRL: "R$", // Brazilian Real- MXN: "$", // Mexican Peso- ARS: "$", // Argentine Peso- INR: "₹", // Indian Rupee++ // Major global currencies+ JPY: "¥", // Japanese Yen+ AUD: "$", // Australian Dollar+ CAD: "$", // Canadian DollarCHF: "Fr", // Swiss Franc- HKD: "HK$", // Hong Kong Dollar- TWD: "NT$", // Taiwan DollarCNY: "¥", // Chinese Yuan (RMB)+ HKD: "HK$", // Hong Kong DollarSGD: "S$", // Singapore Dollar- JPY: "¥", // Japanese YenSEK: "kr", // Swedish KronaNOK: "kr", // Norwegian KroneDKK: "kr", // Danish Krone- CZK: "Kč", // Czech Koruna- HUF: "Ft", // Hungarian Forint- ILS: "₪", // Israeli New Shekel+ NZD: "NZ$", // New Zealand Dollar++ // Large emerging markets+ INR: "₹", // Indian Rupee+ KRW: "₩", // South Korean Won+ MXN: "$", // Mexican Peso+ BRL: "R$", // Brazilian RealZAR: "R", // South African RandTRY: "₺", // Turkish Lira- KRW: "₩", // South Korean Won- NZD: "NZ$", // New Zealand Dollar- PKR: "₨", // Pakistani Rupee- SAR: "SAR", // Saudi Riyal+ RUB: "₽", // Russian Ruble++ // Southeast Asia+ THB: "฿", // Thai Baht+ MYR: "RM", // Malaysian Ringgit+ IDR: "Rp", // Indonesian Rupiah+ PHP: "₱", // Philippine Peso+ VND: "₫", // Vietnamese Dong++ // Middle East & GulfAED: "AED", // UAE Dirham+ SAR: "SAR", // Saudi Riyal+ ILS: "₪", // Israeli New ShekelQAR: "QR", // Qatari RiyalKWD: "KWD", // Kuwaiti DinarBHD: "BHD", // Bahraini Dinar@@ -87,44 +139,91 @@ export const CURRENCY_SYMBOLS = {JOD: "JOD", // Jordanian DinarEGP: "EGP", // Egyptian PoundLBP: "LBP", // Lebanese Pound+ IQD: "IQD", // Iraqi Dinar++ // Eastern Europe+ CZK: "Kč", // Czech Koruna+ HUF: "Ft", // Hungarian Forint+ RON: "lei", // Romanian Leu+ BGN: "лв", // Bulgarian Lev+ HRK: "kn", // Croatian Kuna+ RSD: "дин", // Serbian Dinar+ UAH: "₴", // Ukrainian Hryvnia+ BYN: "Br", // Belarusian Ruble+ MDL: "L", // Moldovan Leu+ GEL: "₾", // Georgian Lari+ KZT: "₸", // Kazakhstani Tenge++ // Latin America+ ARS: "$", // Argentine Peso+ CLP: "$", // Chilean Peso+ COP: "$", // Colombian Peso+ PEN: "S/", // Peruvian Sol+ UYU: "$", // Uruguayan Peso+ BOB: "Bs", // Bolivian Boliviano++ // South Asia+ PKR: "₨", // Pakistani Rupee+ BDT: "৳", // Bangladeshi Taka+ LKR: "Rs", // Sri Lankan Rupee+ NPR: "Rs", // Nepalese Rupee++ // Africa+ NGN: "₦", // Nigerian Naira+ KES: "KSh", // Kenyan Shilling+ GHS: "₵", // Ghanaian Cedi+ ETB: "Br", // Ethiopian Birr+ MAD: "MAD", // Moroccan Dirham+ TND: "TND", // Tunisian Dinar++ // Other+ ISK: "kr", // Icelandic Króna+ TWD: "NT$", // Taiwan Dollar} as const satisfies Record<SupportedCurrencies, string>;export type CurrencySymbols =(typeof CURRENCY_SYMBOLS)[keyof typeof CURRENCY_SYMBOLS];export const CURRENCY_TO_LABEL = {+ // Top currencies (pinned)EUR: "Euro",USD: "United States Dollar",- CAD: "Canadian Dollar",- AUD: "Australian Dollar",GBP: "British Pound Sterling",PLN: "Polish Złoty",- RUB: "Russian Ruble",- UAH: "Ukrainian Hryvnia",- BYN: "Belarusian Ruble",- BRL: "Brazilian Real",- MXN: "Mexican Peso",- ARS: "Argentine Peso",- INR: "Indian Rupee",++ // Major global currencies+ JPY: "Japanese Yen",+ AUD: "Australian Dollar",+ CAD: "Canadian Dollar",CHF: "Swiss Franc",- HKD: "Hong Kong Dollar",- TWD: "New Taiwan Dollar",CNY: "Chinese Yuan Renminbi",+ HKD: "Hong Kong Dollar",SGD: "Singapore Dollar",- JPY: "Japanese Yen",SEK: "Swedish Krona",NOK: "Norwegian Krone",DKK: "Danish Krone",- CZK: "Czech Koruna",- HUF: "Hungarian Forint",- ILS: "Israeli New Shekel",+ NZD: "New Zealand Dollar",++ // Large emerging markets+ INR: "Indian Rupee",+ KRW: "South Korean Won",+ MXN: "Mexican Peso",+ BRL: "Brazilian Real",ZAR: "South African Rand",TRY: "Turkish Lira",- KRW: "South Korean Won",- NZD: "New Zealand Dollar",- PKR: "Pakistani Rupee",- SAR: "Saudi Riyal",+ RUB: "Russian Ruble",++ // Southeast Asia+ THB: "Thai Baht",+ MYR: "Malaysian Ringgit",+ IDR: "Indonesian Rupiah",+ PHP: "Philippine Peso",+ VND: "Vietnamese Dong",++ // Middle East & GulfAED: "UAE Dirham",+ SAR: "Saudi Riyal",+ ILS: "Israeli New Shekel",QAR: "Qatari Riyal",KWD: "Kuwaiti Dinar",BHD: "Bahraini Dinar",@@ -132,6 +231,46 @@ export const CURRENCY_TO_LABEL = {JOD: "Jordanian Dinar",EGP: "Egyptian Pound",LBP: "Lebanese Pound",+ IQD: "Iraqi Dinar",++ // Eastern Europe+ CZK: "Czech Koruna",+ HUF: "Hungarian Forint",+ RON: "Romanian Leu",+ BGN: "Bulgarian Lev",+ HRK: "Croatian Kuna",+ RSD: "Serbian Dinar",+ UAH: "Ukrainian Hryvnia",+ BYN: "Belarusian Ruble",+ MDL: "Moldovan Leu",+ GEL: "Georgian Lari",+ KZT: "Kazakhstani Tenge",++ // Latin America+ ARS: "Argentine Peso",+ CLP: "Chilean Peso",+ COP: "Colombian Peso",+ PEN: "Peruvian Sol",+ UYU: "Uruguayan Peso",+ BOB: "Bolivian Boliviano",++ // South Asia+ PKR: "Pakistani Rupee",+ BDT: "Bangladeshi Taka",+ LKR: "Sri Lankan Rupee",+ NPR: "Nepalese Rupee",++ // Africa+ NGN: "Nigerian Naira",+ KES: "Kenyan Shilling",+ GHS: "Ghanaian Cedi",+ ETB: "Ethiopian Birr",+ MAD: "Moroccan Dirham",+ TND: "Tunisian Dinar",++ // Other+ ISK: "Icelandic Króna",+ TWD: "New Taiwan Dollar",} as const satisfies Record<SupportedCurrencies, string>;export type CurrencyLabels =