Description
The admin Dashboard page (packages/admin/src/pages/Dashboard.tsx) has all strings hardcoded in English with no i18n support. This includes section headings, labels, chart titles, and empty state messages.
Hardcoded Strings
- "Dashboard", "Overview", "Analytics"
- "Recent Orders", "View All"
- "Top Selling Items", "View Menu"
- "No orders yet.", "sold"
- Chart titles: "Revenue Trend", "Daily Orders", "Order Types", "Order Status", "Orders by Hour of Day", "Revenue by Category"
Steps
- Set up i18n in the admin package if not already configured
- Add translation keys under a
dashboard namespace
- Replace all hardcoded strings with
t() calls
- Add translations for all supported languages (en, es, fr, de, it, pt)
Effort
M — many strings to extract, but each change is mechanical
Description
The admin Dashboard page (
packages/admin/src/pages/Dashboard.tsx) has all strings hardcoded in English with no i18n support. This includes section headings, labels, chart titles, and empty state messages.Hardcoded Strings
Steps
dashboardnamespacet()callsEffort
M — many strings to extract, but each change is mechanical