const euros = new Intl.NumberFormat('nl-NL', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0, }); // A price in whole euros as shown on the cards: "€ 175", "€ 1.250". Any space // the browser puts in (some use a narrow one) becomes a non-breaking space, // so the price never wraps (BR-PRICE-01). export function formatPrice(price: number): string { return euros.format(price).replace(/\s/g, '\u00a0'); }