mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: add Traditional Chinese documentations
This commit is contained in:
parent
7deaef920d
commit
18ed5deaee
20 changed files with 819 additions and 9 deletions
|
@ -2,11 +2,13 @@ import { defineConfig } from 'vitepress'
|
|||
import { sharedConfig } from './shared'
|
||||
import { enConfig } from "./en"
|
||||
import { zhCNConfig } from "./zh_CN"
|
||||
import { zhTWConfig } from "./zh_TW";
|
||||
|
||||
export default defineConfig({
|
||||
...sharedConfig,
|
||||
locales: {
|
||||
root: { label: 'English', lang: 'en', ...enConfig },
|
||||
zh_CN: { label: '简体中文', lang: 'zh-CN', ...zhCNConfig }
|
||||
zh_CN: { label: '简体中文', lang: 'zh-CN', ...zhCNConfig },
|
||||
zh_TW: { label: '繁體中文', lang: 'zh-TW', ...zhTWConfig }
|
||||
}
|
||||
})
|
||||
|
|
|
@ -30,7 +30,7 @@ export const zhCNConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
|
|||
collapsed: false,
|
||||
items: [
|
||||
{text: '构建', link: '/zh_CN/guide/build'},
|
||||
{text: '目录结构', link: '/zh_CN/guide/project-structure'},
|
||||
{text: '项目结构', link: '/zh_CN/guide/project-structure'},
|
||||
{text: '贡献代码', link: '/zh_CN/guide/contributing'}
|
||||
]
|
||||
},
|
||||
|
|
92
docs/.vitepress/config/zh_TW.ts
Normal file
92
docs/.vitepress/config/zh_TW.ts
Normal file
|
@ -0,0 +1,92 @@
|
|||
import {LocaleSpecificConfig, DefaultTheme} from "vitepress"
|
||||
import {demoUrl, editLinkPattern} from './common'
|
||||
|
||||
export const zhTWConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
|
||||
themeConfig: {
|
||||
nav: [
|
||||
{text: '首頁', link: '/zh_TW/'},
|
||||
{text: '手冊', link: '/zh_TW/guide/about'},
|
||||
{text: '演示', link: demoUrl}
|
||||
],
|
||||
|
||||
editLink: {
|
||||
text: '編輯此頁',
|
||||
pattern: editLinkPattern
|
||||
},
|
||||
|
||||
sidebar: {
|
||||
'/zh_TW/guide/': [
|
||||
{
|
||||
text: '介紹',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{text: '何為 Nginx UI?', link: '/zh_TW/guide/about'},
|
||||
{text: '即刻開始', link: '/zh_TW/guide/getting-started'},
|
||||
{text: '安裝指令碼', link: '/zh_TW/guide/install-script-linux'}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '開發',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{text: '構建', link: '/zh_TW/guide/build'},
|
||||
{text: '專案結構', link: '/zh_TW/guide/project-structure'},
|
||||
{text: '貢獻程式碼', link: '/zh_TW/guide/contributing'}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '配置',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{text: '服務端', link: '/zh_TW/guide/config-server'},
|
||||
{text: 'Nginx 日誌', link: '/zh_TW/guide/config-nginx-log'},
|
||||
{text: 'Open AI', link: '/zh_TW/guide/config-openai'}
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '附錄',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{text: 'Nginx 代理示例', link: '/zh_TW/guide/nginx-proxy-example'},
|
||||
{text: '開源協議', link: '/zh_TW/guide/license'}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
docFooter: {
|
||||
prev: '上一頁',
|
||||
next: '下一頁',
|
||||
},
|
||||
returnToTopLabel: '返回頂部',
|
||||
outlineTitle: '導航欄',
|
||||
darkModeSwitchLabel: '外觀',
|
||||
sidebarMenuLabel: '歸檔',
|
||||
lastUpdatedText: '更新於',
|
||||
|
||||
search: {
|
||||
provider: 'local',
|
||||
options: {
|
||||
locales: {
|
||||
zh_CN: {
|
||||
translations: {
|
||||
button: {
|
||||
buttonText: '搜尋文件',
|
||||
buttonAriaLabel: '搜尋文件'
|
||||
},
|
||||
modal: {
|
||||
noResultsText: '無法找到相關結果',
|
||||
resetButtonTitle: '清除查詢條件',
|
||||
footer: {
|
||||
selectText: '選擇',
|
||||
navigateText: '切換',
|
||||
closeText: '關閉'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue