zh_TW.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/build'},
  30. {text: '專案結構', link: '/zh_TW/guide/project-structure'},
  31. {text: '貢獻程式碼', link: '/zh_TW/guide/contributing'}
  32. ]
  33. },
  34. {
  35. text: '配置',
  36. collapsed: false,
  37. items: [
  38. {text: '服務端', link: '/zh_TW/guide/config-server'},
  39. {text: 'Nginx', link: '/zh_TW/guide/config-nginx'},
  40. {text: 'Open AI', link: '/zh_TW/guide/config-openai'},
  41. {text: 'Casdoor', link: '/zh_TW/guide/config-casdoor'},
  42. {text: 'Logrotate', link: '/zh_TW/guide/config-logrotate'},
  43. {text: '集群', link: '/zh_TW/guide/config-cluster'},
  44. {text: '認證', link: '/zh_TW/guide/config-auth'},
  45. {text: '加密', link: '/zh_TW/guide/config-crypto'}
  46. ]
  47. },
  48. {
  49. text: '環境變量',
  50. collapsed: false,
  51. items: [
  52. {text: '參考手冊', link: '/zh_TW/guide/env'},
  53. ]
  54. },
  55. {
  56. text: '附錄',
  57. collapsed: false,
  58. items: [
  59. {text: 'Nginx 代理示例', link: '/zh_TW/guide/nginx-proxy-example'},
  60. {text: '開源協議', link: '/zh_TW/guide/license'}
  61. ]
  62. }
  63. ]
  64. },
  65. docFooter: {
  66. prev: '上一頁',
  67. next: '下一頁'
  68. },
  69. returnToTopLabel: '返回頂部',
  70. outline: {
  71. label: '導航欄'
  72. },
  73. darkModeSwitchLabel: '外觀',
  74. sidebarMenuLabel: '歸檔',
  75. lastUpdated: {
  76. text: '更新於'
  77. },
  78. search: {
  79. provider: 'local',
  80. options: {
  81. locales: {
  82. zh_TW: {
  83. translations: {
  84. button: {
  85. buttonText: '搜尋文件',
  86. buttonAriaLabel: '搜尋文件'
  87. },
  88. modal: {
  89. noResultsText: '無法找到相關結果',
  90. resetButtonTitle: '清除查詢條件',
  91. footer: {
  92. selectText: '選擇',
  93. navigateText: '切換',
  94. closeText: '關閉'
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }