2026-05-09 16:00:29 +08:00
|
|
|
---
|
|
|
|
|
import AppLayout from '../layouts/App.astro';
|
|
|
|
|
import DashboardApp from './DashboardApp';
|
|
|
|
|
import { t, type Locale } from '../i18n/utils';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
locale: Locale;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { locale } = Astro.props;
|
|
|
|
|
const translations = {
|
|
|
|
|
dashboard: t(locale, 'dashboard'),
|
|
|
|
|
store: t(locale, 'store'),
|
|
|
|
|
pricing: t(locale, 'pricing'),
|
|
|
|
|
history: t(locale, 'history'),
|
|
|
|
|
notifications: t(locale, 'notifications'),
|
|
|
|
|
profile: t(locale, 'profile'),
|
|
|
|
|
settings: t(locale, 'settings'),
|
|
|
|
|
divination: t(locale, 'divination'),
|
2026-05-09 18:23:21 +08:00
|
|
|
general: t(locale, 'general'),
|
|
|
|
|
feedback: t(locale, 'feedback'),
|
2026-05-10 13:59:04 +08:00
|
|
|
result: t(locale, 'result'),
|
2026-05-09 16:00:29 +08:00
|
|
|
};
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<AppLayout locale={locale}>
|
|
|
|
|
<DashboardApp client:only="react" locale={locale} translations={translations} />
|
|
|
|
|
</AppLayout>
|