浏览文件
index.astro
9 行 · 361 B历史下载| 1 | --- |
| 2 | import CageHome from '../../components/CageHome.astro'; |
| 3 | import { languages } from '../../i18n/cage'; |
| 4 | export function getStaticPaths() { |
| 5 | return languages.filter(language => language.code !== 'zh').map(language => ({ params: { locale: language.code }, props: { locale: language.code } })); |
| 6 | } |
| 7 | const { locale } = Astro.props; |
| 8 | --- |
| 9 | <CageHome locale={locale} /> |

