🚚 Use root locales

This commit is contained in:
2025-12-07 20:45:46 +08:00
parent f0345d5bb5
commit 5cd3bcf5ee
19 changed files with 10 additions and 7 deletions

View File

@@ -9,11 +9,14 @@ export default defineConfig({
starlight({
title: "Suki",
description:
"Solsynth's products kownledge base, including Solar Network, GoatCraft and more.", defaultLocale: "zh-cn", locales: {
"Solsynth's products kownledge base, including Solar Network, GoatCraft and more.",
defaultLocale: 'root',
locales: {
en: {
label: "English",
lang: 'en',
},
"zh-cn": {
root: {
label: "简体中文",
lang: "zh-CN",
},

View File

@@ -12,16 +12,16 @@ import { LinkCard, Card, CardGrid } from "@astrojs/starlight/components";
<LinkCard
title="规范"
description="Solsynth 产品的规范和规格。"
href="/zh-cn/standards"
href="/standards"
/>
<LinkCard
title="太阳能网络"
description="Solsynth 的主要产品,太阳能网络。"
href="/zh-cn/solar-network"
href="/solar-network"
/>
<LinkCard
title="GoatCraft"
description="Solsynth 团队托管的官方 Minecraft 服务器,与 Mojang 无关。"
href="/zh-cn/goatcraft"
href="/goatcraft"
/>
</CardGrid>

View File

@@ -5,10 +5,10 @@ template: splash
hero:
tagline: 这里提供了 Solar Network、GoatCraft 等项目的文档,欢迎查阅。
image:
file: ../../../assets/houston.webp
file: ../../assets/houston.webp
actions:
- text: 探索文档
link: /zh-cn/directory
link: /directory
icon: right-arrow
- text: 访问官网
link: https://solsynth.dev