Files
OpenFlare/frontend/app/(main)/websites/[zoneId]/page.tsx
T
ryan 5a8722ff07 feat(frontend): 控制台 next-intl 中英双语
接入无 URL 前缀的 zh-CN/en,顶栏与外观设置可切换语言;选择写入 cookie 后刷新生效。
2026-08-16 16:49:16 +08:00

28 lines
683 B
TypeScript

import { Suspense } from 'react';
import { Globe } from 'lucide-react';
import { getTranslations } from 'next-intl/server';
import { LoadingStateWithBorder } from '@/components/layout/loading';
import { ZonePageClient } from './page-client';
export async function generateStaticParams() {
return [{ zoneId: '1' }];
}
export default async function ZonePage() {
const t = await getTranslations('websites');
return (
<Suspense
fallback={
<div className='py-6 px-1'>
<LoadingStateWithBorder
icon={Globe}
description={t('loadingDetail')}
/>
</div>
}
>
<ZonePageClient />
</Suspense>
);
}