Migrate from Vite to Next.js 15 with SSR
- Replace Vite + React Router with Next.js 15 App Router - Implement i18n with next-intl (URL-based: /de, /en, /sr) - Add SSR/SSG for all pages (48 static pages generated) - Setup Supabase SSR client for auth - Migrate all pages: Home, About, Portfolio, Blog, Contact, Login, Dashboard, Imprint, Privacy, Terms - Add Docker support with standalone output - Replace i18next with next-intl JSON translations - Use next/image for optimized images Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
// src/i18n/locales/en/pages/dashboard.ts
|
||||
export const dashboard = {
|
||||
// SEO
|
||||
seo: {
|
||||
title: 'Analytics Dashboard',
|
||||
description: 'Website Analysis Dashboard'
|
||||
},
|
||||
// Main headings
|
||||
header: {
|
||||
title: 'Analytics Dashboard',
|
||||
activeUsers: 'active users'
|
||||
},
|
||||
// Metric cards
|
||||
metrics: {
|
||||
pageViews: {
|
||||
title: 'Page Views',
|
||||
perMinute: 'per minute'
|
||||
},
|
||||
uniqueVisitors: {
|
||||
title: 'Unique Visitors',
|
||||
currentlyActive: 'currently active'
|
||||
},
|
||||
conversions: {
|
||||
title: 'Conversions',
|
||||
rate: 'conversion rate'
|
||||
},
|
||||
timeOnSite: {
|
||||
title: 'Avg. Time on Site',
|
||||
bounceRate: 'bounce rate'
|
||||
}
|
||||
},
|
||||
// Top pages section
|
||||
topPages: {
|
||||
title: 'Top Pages',
|
||||
columns: {
|
||||
path: 'Path',
|
||||
views: 'Views',
|
||||
change: 'Change'
|
||||
}
|
||||
},
|
||||
// Event tracking section
|
||||
events: {
|
||||
title: 'Event Tracking',
|
||||
types: {
|
||||
contactForm: 'Contact Form Submission',
|
||||
portfolioView: 'Portfolio View',
|
||||
cvDownload: 'CV Download',
|
||||
blogRead: 'Blog Read'
|
||||
}
|
||||
},
|
||||
// Status messages
|
||||
status: {
|
||||
loading: 'Loading Dashboard...',
|
||||
error: 'Error loading data',
|
||||
notAuthenticated: 'Please sign in'
|
||||
},
|
||||
// Miscellaneous
|
||||
misc: {
|
||||
viewMore: 'View More',
|
||||
refresh: 'Refresh',
|
||||
period: {
|
||||
today: 'Today',
|
||||
yesterday: 'Yesterday',
|
||||
last7Days: 'Last 7 Days',
|
||||
last30Days: 'Last 30 Days',
|
||||
thisMonth: 'This Month',
|
||||
lastMonth: 'Last Month'
|
||||
}
|
||||
},
|
||||
// Trends and changes
|
||||
trends: {
|
||||
increase: 'Increase',
|
||||
decrease: 'Decrease',
|
||||
noChange: 'No Change'
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user