You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(whatsapp): format receipt amounts with Intl.NumberFormat for correct locale currency placement #196
In frontend/src/lib/whatsapp-share.ts, the helper function formatAmount hardcodes the currency symbol directly as a prefix string before the formatted number (${currency}${amount.toLocaleString(...)}). In international locales where currency symbols appear after the amount (or require specific spacing, e.g., German/French EUR formatting 10,00 € or Swedish SEK 100 kr), the generated WhatsApp receipt text is malformed.
Receipt totals and item amounts follow the regional formatting rules of the tenant's selected country and currency code.
Actual Behavior
Currency symbols are always prepended to amounts regardless of the locale.
Affected Files
frontend/src/lib/whatsapp-share.ts
Suggested Implementation Direction
Use new Intl.NumberFormat(locale, { style: 'currency', currency: tenantCurrency }) or leverage the existing currency formatting hook logic to generate localized price strings.
Fixed in 1524019: formatAmount() now uses Intl.NumberFormat({ style: 'currency', currency }) instead of concatenating the currency symbol as a string prefix, so amounts render correctly across locales.
Activity
fix: surface dashboard fetch errors, clear stuck products spinner, lo…
itsbkm commentedon Jul 29, 2026
Fixed in 1524019: formatAmount() now uses Intl.NumberFormat({ style: 'currency', currency }) instead of concatenating the currency symbol as a string prefix, so amounts render correctly across locales.