zh_TW.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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: '安裝指令碼', link: '/zh_TW/guide/install-script-linux' }
  25. ]
  26. },
  27. {
  28. text: '開發',
  29. collapsed: false,
  30. items: [
  31. { text: '開發容器', link: '/zh_TW/guide/devcontainer' },
  32. { text: '構建', link: '/zh_TW/guide/build' },
  33. { text: '專案結構', link: '/zh_TW/guide/project-structure' },
  34. { text: '配置模板', link: '/zh_TW/guide/nginx-ui-template' },
  35. { text: '貢獻程式碼', link: '/zh_TW/guide/contributing' }
  36. ]
  37. },
  38. {
  39. text: 'MCP',
  40. collapsed: false,
  41. items: [
  42. { text: '概述', link: '/zh_TW/guide/mcp' },
  43. { text: '配置文件管理', link: '/zh_TW/guide/mcp-config' },
  44. { text: 'Nginx 服務管理', link: '/zh_TW/guide/mcp-nginx' },
  45. ]
  46. },
  47. {
  48. text: '配置',
  49. collapsed: false,
  50. items: [
  51. { text: 'App', link: '/zh_TW/guide/config-app' },
  52. { text: 'Auth', link: '/zh_TW/guide/config-auth' },
  53. { text: 'Backup', link: '/zh_TW/guide/config-backup' },
  54. { text: 'Casdoor', link: '/zh_TW/guide/config-casdoor' },
  55. { text: 'Cert', link: '/zh_TW/guide/config-cert' },
  56. { text: 'Cluster', link: '/zh_TW/guide/config-cluster' },
  57. { text: 'Crypto', link: '/zh_TW/guide/config-crypto' },
  58. { text: 'Database', link: '/zh_TW/guide/config-database' },
  59. { text: 'Http', link: '/zh_TW/guide/config-http' },
  60. { text: 'Logrotate', link: '/zh_TW/guide/config-logrotate' },
  61. { text: 'Nginx', link: '/zh_TW/guide/config-nginx' },
  62. { text: 'Node', link: '/zh_TW/guide/config-node' },
  63. { text: 'Open AI', link: '/zh_TW/guide/config-openai' },
  64. { text: 'Server', link: '/zh_TW/guide/config-server' },
  65. { text: 'Terminal', link: '/zh_TW/guide/config-terminal' },
  66. { text: 'Webauthn', link: '/zh_TW/guide/config-webauthn' }
  67. ]
  68. },
  69. {
  70. text: '環境變量',
  71. collapsed: false,
  72. items: [
  73. { text: '參考手冊', link: '/zh_TW/guide/env' },
  74. ]
  75. },
  76. {
  77. text: '附錄',
  78. collapsed: false,
  79. items: [
  80. { text: 'Nginx 代理示例', link: '/zh_TW/guide/nginx-proxy-example' },
  81. { text: '重置密碼', link: '/zh_TW/guide/reset-password' },
  82. { text: '開源協議', link: '/zh_TW/guide/license' }
  83. ]
  84. }
  85. ]
  86. },
  87. docFooter: {
  88. prev: '上一頁',
  89. next: '下一頁'
  90. },
  91. returnToTopLabel: '返回頂部',
  92. outline: {
  93. label: '導航欄'
  94. },
  95. darkModeSwitchLabel: '外觀',
  96. sidebarMenuLabel: '歸檔',
  97. lastUpdated: {
  98. text: '更新於'
  99. },
  100. search: {
  101. provider: 'local',
  102. options: {
  103. locales: {
  104. zh_TW: {
  105. translations: {
  106. button: {
  107. buttonText: '搜尋文件',
  108. buttonAriaLabel: '搜尋文件'
  109. },
  110. modal: {
  111. noResultsText: '無法找到相關結果',
  112. resetButtonTitle: '清除查詢條件',
  113. footer: {
  114. selectText: '選擇',
  115. navigateText: '切換',
  116. closeText: '關閉'
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }