zh_TW.ts 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. ]
  43. },
  44. {
  45. text: '附錄',
  46. collapsed: false,
  47. items: [
  48. {text: 'Nginx 代理示例', link: '/zh_TW/guide/nginx-proxy-example'},
  49. {text: '開源協議', link: '/zh_TW/guide/license'}
  50. ]
  51. }
  52. ]
  53. },
  54. docFooter: {
  55. prev: '上一頁',
  56. next: '下一頁'
  57. },
  58. returnToTopLabel: '返回頂部',
  59. outline: {
  60. label: '導航欄'
  61. },
  62. darkModeSwitchLabel: '外觀',
  63. sidebarMenuLabel: '歸檔',
  64. lastUpdated: {
  65. text: '更新於'
  66. },
  67. search: {
  68. provider: 'local',
  69. options: {
  70. locales: {
  71. zh_TW: {
  72. translations: {
  73. button: {
  74. buttonText: '搜尋文件',
  75. buttonAriaLabel: '搜尋文件'
  76. },
  77. modal: {
  78. noResultsText: '無法找到相關結果',
  79. resetButtonTitle: '清除查詢條件',
  80. footer: {
  81. selectText: '選擇',
  82. navigateText: '切換',
  83. closeText: '關閉'
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }