zh_TW.ts 4.1 KB

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