feat(frontend): 控制台 next-intl 中英双语

接入无 URL 前缀的 zh-CN/en,顶栏与外观设置可切换语言;选择写入 cookie 后刷新生效。
This commit is contained in:
ryan
2026-08-16 16:49:16 +08:00
parent 64fbaa7ef1
commit 5a8722ff07
219 changed files with 21437 additions and 5212 deletions
@@ -1,5 +1,6 @@
import { Suspense } from 'react';
import { Cloud } from 'lucide-react';
import { getTranslations } from 'next-intl/server';
import { Suspense } from 'react';
import { LoadingStateWithBorder } from '@/components/layout/loading';
@@ -11,13 +12,14 @@ export async function generateStaticParams() {
}
export default async function CloudflareGroupDetailPage() {
const t = await getTranslations('cloudflare');
return (
<Suspense
fallback={
<div className='w-full py-6 px-1'>
<LoadingStateWithBorder
icon={Cloud}
description='加载分组详情中...'
description={t('loadingDetail')}
/>
</div>
}