From 0498844b4f578e79855c319c95a0e5b33dcf7930 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 1 Mar 2026 21:24:50 +0000 Subject: [PATCH] feat: translate reports page to English Co-Authored-By: Claude Opus 4.6 --- apps/web/app/(admin)/reports/page.tsx | 98 +++++++++++++-------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/apps/web/app/(admin)/reports/page.tsx b/apps/web/app/(admin)/reports/page.tsx index fb16cd3..1d05054 100644 --- a/apps/web/app/(admin)/reports/page.tsx +++ b/apps/web/app/(admin)/reports/page.tsx @@ -89,39 +89,39 @@ export default function ReportsPage() { }); setDailyRevenue([ - { date: "Lun", bookings: 4200, sales: 1800, total: 6000 }, - { date: "Mar", bookings: 3800, sales: 1200, total: 5000 }, - { date: "Mié", bookings: 4500, sales: 2100, total: 6600 }, - { date: "Jue", bookings: 5200, sales: 1900, total: 7100 }, - { date: "Vie", bookings: 6800, sales: 3200, total: 10000 }, - { date: "Sáb", bookings: 8500, sales: 4100, total: 12600 }, - { date: "Dom", bookings: 7200, sales: 3500, total: 10700 }, + { date: "Mon", bookings: 4200, sales: 1800, total: 6000 }, + { date: "Tue", bookings: 3800, sales: 1200, total: 5000 }, + { date: "Wed", bookings: 4500, sales: 2100, total: 6600 }, + { date: "Thu", bookings: 5200, sales: 1900, total: 7100 }, + { date: "Fri", bookings: 6800, sales: 3200, total: 10000 }, + { date: "Sat", bookings: 8500, sales: 4100, total: 12600 }, + { date: "Sun", bookings: 7200, sales: 3500, total: 10700 }, ]); setTopProducts([ - { name: "Agua", quantity: 245, revenue: 4900 }, + { name: "Water", quantity: 245, revenue: 4900 }, { name: "Gatorade", quantity: 180, revenue: 6300 }, - { name: "Cerveza", quantity: 156, revenue: 7020 }, - { name: "Pelotas HEAD", quantity: 42, revenue: 7560 }, - { name: "Raqueta alquiler", quantity: 38, revenue: 3800 }, + { name: "Beer", quantity: 156, revenue: 7020 }, + { name: "Pickleballs", quantity: 42, revenue: 7560 }, + { name: "Paddle Rental", quantity: 38, revenue: 3800 }, ]); setCourtStats([ - { name: "Cancha 1", site: "Sede Norte", bookings: 68, revenue: 20400, occupancy: 72 }, - { name: "Cancha 2", site: "Sede Norte", bookings: 54, revenue: 16200, occupancy: 58 }, - { name: "Cancha 1", site: "Sede Centro", bookings: 72, revenue: 21600, occupancy: 76 }, - { name: "Cancha 2", site: "Sede Centro", bookings: 61, revenue: 18300, occupancy: 65 }, - { name: "Cancha 1", site: "Sede Sur", bookings: 48, revenue: 14400, occupancy: 51 }, - { name: "Cancha 2", site: "Sede Sur", bookings: 39, revenue: 11700, occupancy: 42 }, + { name: "Court 1", site: "North Site", bookings: 68, revenue: 20400, occupancy: 72 }, + { name: "Court 2", site: "North Site", bookings: 54, revenue: 16200, occupancy: 58 }, + { name: "Court 1", site: "Central Site", bookings: 72, revenue: 21600, occupancy: 76 }, + { name: "Court 2", site: "Central Site", bookings: 61, revenue: 18300, occupancy: 65 }, + { name: "Court 1", site: "South Site", bookings: 48, revenue: 14400, occupancy: 51 }, + { name: "Court 2", site: "South Site", bookings: 39, revenue: 11700, occupancy: 42 }, ]); setLoading(false); }; const formatCurrency = (amount: number) => { - return new Intl.NumberFormat("es-MX", { + return new Intl.NumberFormat("en-US", { style: "currency", - currency: "MXN", + currency: "USD", minimumFractionDigits: 0, }).format(amount); }; @@ -133,8 +133,8 @@ export default function ReportsPage() { {/* Header */}
-

Reportes

-

Análisis y estadísticas del negocio

+

Reports

+

Business analysis and statistics

@@ -157,28 +157,28 @@ export default function ReportsPage() { {/* KPI Cards */}
- Ingresos por Día + Revenue by Day @@ -224,11 +224,11 @@ export default function ReportsPage() {
- Reservas + Bookings
- Ventas + Sales
@@ -239,7 +239,7 @@ export default function ReportsPage() { {/* Top Products */} - Productos Más Vendidos + Top Selling Products {loading ? ( @@ -261,7 +261,7 @@ export default function ReportsPage() {

{product.name}

-

{product.quantity} unidades

+

{product.quantity} units

{formatCurrency(product.revenue)} @@ -277,7 +277,7 @@ export default function ReportsPage() { {/* Courts Performance */} - Rendimiento por Cancha + Court Performance {loading ? ( @@ -291,11 +291,11 @@ export default function ReportsPage() { - - - - - + + + + + @@ -337,34 +337,34 @@ export default function ReportsPage() {
- Mejor Día + Best Day -

Sábado

+

Saturday

- {formatCurrency(12600)} en ingresos promedio + {formatCurrency(12600)} in average revenue

- Hora Pico + Peak Hour

18:00 - 20:00

- 85% de ocupación en este horario + 85% occupancy during this time slot

- Ticket Promedio + Average Ticket

{formatCurrency(368)}

- Por visita (reserva + consumo) + Per visit (booking + consumption)

@@ -419,7 +419,7 @@ function StatCard({ {isPositive ? "+" : ""} {change}% - vs período anterior + vs previous period
CanchaSedeReservasIngresosOcupaciónCourtSiteBookingsRevenueOccupancy