UNPKG

invoice-craft

Version:

Customizable, browser-first invoice PDF generator library with modern TypeScript API

21 lines (20 loc) 473 B
// src/utils/localization.ts export const defaultLabels = { invoice: "Invoice", date: "Date", dueDate: "Due Date", from: "From", to: "To", description: "Description", quantity: "Qty", unitPrice: "Unit Price", tax: "Tax", total: "Total", subtotal: "Subtotal", discount: "Discount", notes: "Notes", terms: "Terms" }; export function getLabels(customLabels) { return { ...defaultLabels, ...(customLabels || {}) }; }