From b2c0e23136205cf81871208ac2ca87f8c50fb658 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Wed, 17 Jun 2026 11:41:14 +0200 Subject: [PATCH] chore: translate dashboard labels to English and restore CrazeLogo --- App.tsx | 21 ++++++++------------- components/Dashboard.tsx | 22 +++++++++++----------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/App.tsx b/App.tsx index 51969ad..f52acab 100644 --- a/App.tsx +++ b/App.tsx @@ -700,14 +700,9 @@ const App: React.FC = () => {
- {/* Logo Container - CraftAlley branding */} -
setView('dashboard')}> -
- - - -
- CraftAlley + {/* Logo Container - Smaller on mobile */} +
setView('dashboard')}> +
{/* View Switcher */} @@ -771,18 +766,18 @@ const App: React.FC = () => { onClick={() => setShowFilters(prev => !prev)} className="flex items-center gap-1 px-2.5 py-1 bg-slate-900 hover:bg-slate-800 border border-slate-800 rounded text-xs font-semibold text-slate-300 transition-all active:scale-95" > - {showFilters ? 'Ocultar' : '+ Filtrar'} + {showFilters ? 'Hide Filters' : '+ Filter'} {/* Export Action */}
@@ -803,10 +798,10 @@ const App: React.FC = () => {

Analytics Dashboard

- Actualizado {lastUpdated ? new Date(lastUpdated).toLocaleDateString('es-ES', { day: 'numeric', month: 'short', year: 'numeric' }) : '17 jun 2026'} · Semana {(() => { + Updated {lastUpdated ? new Date(lastUpdated).toLocaleDateString('en-US', { day: 'numeric', month: 'short', year: 'numeric' }) : 'Jun 17, 2026'} · Week {(() => { // dynamic or default week number return '25'; - })()} · {rawData.length.toLocaleString('de-DE')} registros + })()} · {rawData.length.toLocaleString('en-US')} records

diff --git a/components/Dashboard.tsx b/components/Dashboard.tsx index 89cf8f7..6873f52 100644 --- a/components/Dashboard.tsx +++ b/components/Dashboard.tsx @@ -534,7 +534,7 @@ const Dashboard: React.FC = ({ currentVal: formatVal(currentVal), prevVal: formatVal(prevVal), priorVal: formatVal(priorVal), - diffLabel: `${formatDiff(currentVal, prevVal)} vs año anterior`, + diffLabel: `${formatDiff(currentVal, prevVal)} vs prior year`, mainGrowthPercent, prevGrowthPercent }; @@ -618,7 +618,7 @@ const Dashboard: React.FC = ({ {/* Período Actual */}
- Período Actual ({currentYear}) + Current Period ({currentYear})
@@ -655,7 +655,7 @@ const Dashboard: React.FC = ({ {/* Período Anterior */}
- Período Anterior ({prevYear || 'N/A'}) + Previous Period ({prevYear || 'N/A'})
{prevKpi ? (
@@ -689,7 +689,7 @@ const Dashboard: React.FC = ({
) : ( -
No hay datos históricos disponibles
+
No historical data available
)}
@@ -718,14 +718,14 @@ const Dashboard: React.FC = ({
- Año Anterior ({sellOutStats.prevYear}) + Previous Year ({sellOutStats.prevYear}) {sellOutStats.prevVal} {sellOutStats.prevGrowthPercent}
- Hace 2 Años ({sellOutStats.twoYearsPrior || 'N/A'}) + 2 Years Prior ({sellOutStats.twoYearsPrior || 'N/A'}) {sellOutStats.priorVal} - referencia + reference
@@ -750,14 +750,14 @@ const Dashboard: React.FC = ({
- Año Anterior ({unitsStats.prevYear}) + Previous Year ({unitsStats.prevYear}) {unitsStats.prevVal} {unitsStats.prevGrowthPercent}
- Hace 2 Años ({unitsStats.twoYearsPrior || 'N/A'}) + 2 Years Prior ({unitsStats.twoYearsPrior || 'N/A'}) {unitsStats.priorVal} - referencia + reference
@@ -817,7 +817,7 @@ const Dashboard: React.FC = ({ {/* Monthly Seasonality Chart */} - +