🚚 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({ starlight({
title: "Suki", title: "Suki",
description: 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: { en: {
label: "English", label: "English",
lang: 'en',
}, },
"zh-cn": { root: {
label: "简体中文", label: "简体中文",
lang: "zh-CN", lang: "zh-CN",
}, },

View File

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

View File

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