zh_TW.ts 3.5 KB

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