The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(pdf): give formatMoney a locale, lower the strict entry of the export
Maurice28f750f7c426
diff --git a/client/scripts/strict-baseline.json b/client/scripts/strict-baseline.jsonindex 39862b5de..8a4ffd8ea 100644--- a/client/scripts/strict-baseline.json+++ b/client/scripts/strict-baseline.json@@ -43,7 +43,7 @@"src/components/Map/ReservationOverlay.test.tsx": 1,"src/components/Map/transitGeometry.ts": 1,"src/components/Map/useMarkerThumbs.ts": 1,- "src/components/PDF/TripPDF.tsx": 38,+ "src/components/PDF/TripPDF.tsx": 1,"src/components/Planner/DayPlanSidebar.constants.ts": 1,"src/components/Planner/DayPlanSidebar.tsx": 52,"src/components/Planner/DayPlanSidebarNoteModal.test.tsx": 1,diff --git a/client/src/components/PDF/tripPdfDay.ts b/client/src/components/PDF/tripPdfDay.tsindex 0cae2413a..fcc7999b8 100644--- a/client/src/components/PDF/tripPdfDay.ts+++ b/client/src/components/PDF/tripPdfDay.ts@@ -261,7 +261,7 @@ function placeFacts(place: Assignment['place'] & Partial<Place>, ctx: PdfDayContconst price = Number(place.price);if (Number.isFinite(price) && price > 0) {facts.push(- `<span class="chip chip-green">${glyph('price', 9)}${escHtml(formatMoney(price, place.currency || ctx.tripCurrency, ctx.locale))}</span>`+ `<span class="chip chip-green">${glyph('price', 9)}${escHtml(formatMoney(price, place.currency || ctx.tripCurrency, ctx.locale || 'en'))}</span>`);}if (typeof place.rating_avg === 'number' && place.rating_avg > 0) {