1
0

zh_TW.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import { LocaleSpecificConfig, DefaultTheme } from 'vitepress'
  2. import { demoUrl, editLinkPattern } from './common'
  3. export const zhTWConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  4. themeConfig: {
  5. nav: [
  6. { text: '首頁', link: '/zh_TW/' },
  7. { text: '手冊', link: '/zh_TW/guide/about' },
  8. { text: '贊助', link: '/zh_TW/sponsor' },
  9. { text: '演示', link: demoUrl }
  10. ],
  11. editLink: {
  12. text: '編輯此頁',
  13. pattern: editLinkPattern
  14. },
  15. sidebar: {
  16. '/zh_TW/guide/': [
  17. {
  18. text: '介紹',
  19. collapsed: false,
  20. items: [
  21. { text: '何為 Nginx UI?', link: '/zh_TW/guide/about' },
  22. { text: '即刻開始', link: '/zh_TW/guide/getting-started' },
  23. { text: '使用 Homebrew 安裝', link: '/zh_TW/guide/install-homebrew' },
  24. { text: '使用 Winget 安裝', link: '/zh_TW/guide/install-winget' },
  25. { text: '安裝指令碼', link: '/zh_TW/guide/install-script-linux' }
  26. ]
  27. },
  28. {
  29. text: '開發',
  30. collapsed: false,
  31. items: [
  32. { text: '開發容器', link: '/zh_TW/guide/devcontainer' },
  33. { text: '構建', link: '/zh_TW/guide/build' },
  34. { text: '專案結構', link: '/zh_TW/guide/project-structure' },
  35. { text: '配置模板', link: '/zh_TW/guide/nginx-ui-template' },
  36. { text: '貢獻程式碼', link: '/zh_TW/guide/contributing' }
  37. ]
  38. },
  39. {
  40. text: 'MCP',
  41. collapsed: false,
  42. items: [
  43. { text: '概述', link: '/zh_TW/guide/mcp' },
  44. { text: '配置文件管理', link: '/zh_TW/guide/mcp-config' },
  45. { text: 'Nginx 服務管理', link: '/zh_TW/guide/mcp-nginx' },
  46. ]
  47. },
  48. {
  49. text: '配置',
  50. collapsed: false,
  51. items: [
  52. { text: 'App', link: '/zh_TW/guide/config-app' },
  53. { text: 'Auth', link: '/zh_TW/guide/config-auth' },
  54. { text: 'Backup', link: '/zh_TW/guide/config-backup' },
  55. { text: 'Casdoor', link: '/zh_TW/guide/config-casdoor' },
  56. { text: 'Cert', link: '/zh_TW/guide/config-cert' },
  57. { text: 'Cluster', link: '/zh_TW/guide/config-cluster' },
  58. { text: 'Crypto', link: '/zh_TW/guide/config-crypto' },
  59. { text: 'Database', link: '/zh_TW/guide/config-database' },
  60. { text: 'Http', link: '/zh_TW/guide/config-http' },
  61. { text: 'Logrotate', link: '/zh_TW/guide/config-logrotate' },
  62. { text: 'Nginx', link: '/zh_TW/guide/config-nginx' },
  63. { text: 'Nginx Log', link: '/zh_TW/guide/config-nginx-log' },
  64. { text: 'Node', link: '/zh_TW/guide/config-node' },
  65. { text: 'Open AI', link: '/zh_TW/guide/config-openai' },
  66. { text: 'Server', link: '/zh_TW/guide/config-server' },
  67. { text: 'Terminal', link: '/zh_TW/guide/config-terminal' },
  68. { text: 'Webauthn', link: '/zh_TW/guide/config-webauthn' }
  69. ]
  70. },
  71. {
  72. text: '環境變量',
  73. collapsed: false,
  74. items: [
  75. { text: '參考手冊', link: '/zh_TW/guide/env' },
  76. ]
  77. },
  78. {
  79. text: '附錄',
  80. collapsed: false,
  81. items: [
  82. { text: 'Nginx 代理示例', link: '/zh_TW/guide/nginx-proxy-example' },
  83. { text: '重置密碼', link: '/zh_TW/guide/reset-password' },
  84. { text: '開源協議', link: '/zh_TW/guide/license' }
  85. ]
  86. }
  87. ]
  88. },
  89. docFooter: {
  90. prev: '上一頁',
  91. next: '下一頁'
  92. },
  93. returnToTopLabel: '返回頂部',
  94. outline: {
  95. label: '導航欄'
  96. },
  97. darkModeSwitchLabel: '外觀',
  98. sidebarMenuLabel: '歸檔',
  99. lastUpdated: {
  100. text: '更新於'
  101. },
  102. search: {
  103. provider: 'local',
  104. options: {
  105. locales: {
  106. zh_TW: {
  107. translations: {
  108. button: {
  109. buttonText: '搜尋文件',
  110. buttonAriaLabel: '搜尋文件'
  111. },
  112. modal: {
  113. noResultsText: '無法找到相關結果',
  114. resetButtonTitle: '清除查詢條件',
  115. footer: {
  116. selectText: '選擇',
  117. navigateText: '切換',
  118. closeText: '關閉'
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }