feat: restructure routes under [locale], add LanguageSwitcher
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { getTranslations } from 'next-intl/server'
|
||||
import { StatusView } from '@/components/StatusView'
|
||||
|
||||
export default async function StatusPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ locale: string; uuid: string }>
|
||||
}) {
|
||||
const { locale, uuid } = await params
|
||||
const t = await getTranslations({ locale, namespace: 'status' })
|
||||
return (
|
||||
<main style={{ padding: '2rem' }}>
|
||||
<h1>{t('heading')}</h1>
|
||||
<StatusView uuid={uuid} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user