## Summary
- Migrated about, updates, and roadmap pages from Pages Router to App
Router
- Fixed profile page data loading and display
- Created API route handlers for proxying backend calls
- Fixed translation format issues with next-intl
## Changes
- Created new App Router pages under `/app/[locale]/`
- Fixed translation interpolation from `{{variable}}` to `{variable}`
format
- Added API routes for characters, raids, summons, and weapons
- Fixed infinite recursion in ChangelogUnit by renaming fetch function
- Converted from useTranslation to useTranslations hook
## Test plan
- [x] About page loads and displays correctly
- [x] Updates page fetches and displays changelog data
- [x] Roadmap page renders without errors
- [x] Profile page shows user teams correctly
- [x] All translations render properly
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: Claude <noreply@anthropic.com>
28 lines
No EOL
597 B
TypeScript
28 lines
No EOL
597 B
TypeScript
import { Metadata } from 'next'
|
|
import { getTranslations } from 'next-intl/server'
|
|
import AboutPageClient from './AboutPageClient'
|
|
|
|
export async function generateMetadata({
|
|
params: { locale }
|
|
}: {
|
|
params: { locale: string }
|
|
}): Promise<Metadata> {
|
|
const t = await getTranslations({ locale, namespace: 'common' })
|
|
|
|
return {
|
|
title: t('page.titles.about'),
|
|
description: t('page.descriptions.about')
|
|
}
|
|
}
|
|
|
|
export default async function AboutPage({
|
|
params: { locale }
|
|
}: {
|
|
params: { locale: string }
|
|
}) {
|
|
return (
|
|
<div id="About">
|
|
<AboutPageClient />
|
|
</div>
|
|
)
|
|
} |