2
0
mirror of https://github.com/acepanel/acepanel.github.io.git synced 2026-02-04 16:51:30 +08:00

feat: 默认简体中文

This commit is contained in:
2025-08-22 20:00:51 +08:00
parent 5f6353c33d
commit b394011b9f
3 changed files with 11 additions and 11 deletions

View File

@@ -18,12 +18,12 @@ export const config = defineConfig({
sidebar: [
{
text: "Quickstart",
base: locale == 'en' ? '/quickstart' : `/${locale}/quickstart`,
base: locale == 'zh_CN' ? '/quickstart' : `/${locale}/quickstart`,
items: sidebarQuickstart()
},
{
text: "Advanced",
base: locale == 'en' ? '/advanced' : `/${locale}/advanced`,
base: locale == 'zh_CN' ? '/advanced' : `/${locale}/advanced`,
items: sidebarAdvanced()
},
{
@@ -33,7 +33,7 @@ export const config = defineConfig({
...versions.map((version: string) => {
return {
text: version,
link: locale == 'en' ? `/version-${version}` : `/${locale}/version-${version}`
link: locale == 'zh_CN' ? `/version-${version}` : `/${locale}/version-${version}`
}
})
]
@@ -76,23 +76,23 @@ function nav(): DefaultTheme.NavItem[] {
return [
{
text: 'Home',
link: locale == 'en' ? '/' : `/${locale}/`
link: locale == 'zh_CN' ? '/' : `/${locale}/`
},
{
text: 'Document',
link: locale == 'en' ? '/quickstart/install' : `/${locale}/quickstart/install`
link: locale == 'zh_CN' ? '/quickstart/install' : `/${locale}/quickstart/install`
},
{
text: 'Support',
link: locale == 'en' ? '/support' : `/${locale}/support`
link: locale == 'zh_CN' ? '/support' : `/${locale}/support`
},
{
text: '🔥Certificate',
link: locale == 'en' ? '/cert' : `/${locale}/cert`
link: locale == 'zh_CN' ? '/cert' : `/${locale}/cert`
},
{
text: 'About',
link: locale == 'en' ? '/about' : `/${locale}/about`
link: locale == 'zh_CN' ? '/about' : `/${locale}/about`
},
]
}

View File

@@ -9,8 +9,8 @@ import {config as zh_TW} from './zh_TW'
export default defineConfig({
...shared,
locales: {
root: { label: 'English', ...en },
zh_CN: {label: '简体中文', ...zh_CN},
root: {label: '简体中文', ...zh_CN},
zh_TW: {label: '繁體中文', ...zh_TW},
en: { label: 'English', ...en },
},
})

View File

@@ -10,7 +10,7 @@ export const shared = defineConfig({
title: 'AcePanel',
rewrites: {
'en/:rest*': ':rest*'
'zh_CN/:rest*': ':rest*'
},
lastUpdated: true,