es.ts 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
  2. export const esConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  3. themeConfig: {
  4. editLink: {
  5. pattern: 'https://github.com/tresjs/tres/edit/main/packages/docs/:path',
  6. text: 'Sugerir cambios a esta página',
  7. },
  8. sidebar: [
  9. {
  10. text: 'Guía',
  11. items: [
  12. // Esto muestra la página `/guide/index.md`.
  13. { text: 'Introducción', link: '/es/guide/' },
  14. { text: 'Empezando', link: '/es/guide/getting-started' },
  15. { text: 'Tu primera Escena', link: '/es/guide/your-first-scene' },
  16. { text: 'Nuxt', link: '/es/guide/nuxt' },
  17. { text: 'Solución de problemas', link: '/es/guide/troubleshooting' },
  18. { text: 'Migración desde v1', link: '/es/guide/migration-guide' },
  19. ],
  20. },
  21. {
  22. text: 'API',
  23. items: [
  24. { text: 'TresCanvas', link: '/es/api/tres-canvas' },
  25. {
  26. text: 'Instancias, argumentos y props',
  27. link: '/es/api/instances-arguments-and-props',
  28. },
  29. {
  30. text: 'Composables',
  31. link: '/es/api/composables',
  32. },
  33. {
  34. text: 'Eventos',
  35. link: '/es/api/events',
  36. },
  37. ],
  38. },
  39. {
  40. text: 'Avanzado',
  41. items: [
  42. { text: 'Extender', link: '/es/advanced/extending' },
  43. { text: 'Primitive', link: '/es/advanced/primitive' },
  44. {
  45. text: 'Advertencias',
  46. link: '/es/advanced/caveats',
  47. },
  48. ],
  49. },
  50. {
  51. text: 'Depuración',
  52. items: [
  53. { text: 'Herramientas de desarrollo', link: '/es/debug/devtools' },
  54. ],
  55. },
  56. {
  57. text: 'Recetario 🍳🧑‍🍳',
  58. link: '/es/cookbook/',
  59. items: [
  60. { text: 'Controles de órbita', link: '/es/cookbook/orbit-controls' },
  61. { text: 'Animaciones básicas', link: '/es/cookbook/basic-animations' },
  62. { text: 'Grupos', link: '/es/cookbook/groups' },
  63. { text: 'Cargar texturas', link: '/es/cookbook/load-textures' },
  64. { text: 'Cargar modelos', link: '/es/cookbook/load-models' },
  65. { text: 'Cargar texto', link: '/es/cookbook/text-3d' },
  66. { text: 'Luces y sombras', link: '/es/cookbook/lights-shadows' },
  67. { text: 'Shaders', link: '/es/cookbook/shaders' },
  68. ],
  69. },
  70. {
  71. text: 'Directivas',
  72. collapsed: true,
  73. items: [
  74. { text: 'v-log', link: '/es/directives/v-log' },
  75. { text: 'v-light-helper', link: '/es/directives/v-light-helper' },
  76. { text: 'v-always-look-at', link: '/es/directives/v-always-look-at' },
  77. { text: 'v-distance-to', link: '/es/directives/v-distance-to' },
  78. ],
  79. },
  80. {
  81. text: 'Ecosistema',
  82. items: [
  83. {
  84. text: 'Cientos 💛',
  85. link: 'https://cientos.tresjs.org/',
  86. },
  87. {
  88. text: 'Módulo Nuxt',
  89. link: 'https://github.com/Tresjs/nuxt',
  90. },
  91. {
  92. text: 'TresLeches 🍰',
  93. link: 'https://tresleches.tresjs.org/',
  94. },
  95. {
  96. text: 'Post-procesamiento (Próximamente)',
  97. },
  98. ],
  99. },
  100. ],
  101. nav: [
  102. { text: 'Guía', link: '/es/guide/' },
  103. { text: 'API', link: '/es/api/tres-canvas' },
  104. /* { text: 'API', link: '/es/api/' },
  105. { text: 'Configuración', link: '/es/config/' }, */
  106. { text: 'Recursos', items: [
  107. { text: 'Equipo', link: '/es/team' },
  108. { text: 'Versiones', link: 'https://github.com/Tresjs/tres/releases' },
  109. {
  110. text: 'Playground',
  111. link: 'https://play.tresjs.org/',
  112. },
  113. {
  114. text: 'Github',
  115. link: 'https://github.com/Tresjs/tres/',
  116. },
  117. {
  118. text: 'Problemas',
  119. link: 'https://github.com/Tresjs/tres/issues',
  120. },
  121. {
  122. text: 'Ecosistema',
  123. items: [
  124. {
  125. text: 'Cientos 💛',
  126. link: 'https://cientos.tresjs.org/',
  127. },
  128. {
  129. text: 'Módulo Nuxt',
  130. link: 'https://github.com/Tresjs/nuxt',
  131. },
  132. {
  133. text: 'TresLeches 🍰',
  134. link: 'https://tresleches.tresjs.org/',
  135. },
  136. ],
  137. },
  138. ] },
  139. ],
  140. search: {
  141. provider: 'local',
  142. options: {
  143. locales: {
  144. es: {
  145. translations: {
  146. button: {
  147. buttonText: 'Buscar',
  148. buttonAriaLabel: 'Buscar',
  149. },
  150. modal: {
  151. displayDetails: 'Mostrar lista detallada',
  152. resetButtonTitle: 'Restablecer búsqueda',
  153. backButtonTitle: 'Cerrar búsqueda',
  154. noResultsText: 'Sin resultados para',
  155. footer: {
  156. selectText: 'para seleccionar',
  157. selectKeyAriaLabel: 'entrar',
  158. navigateText: 'para navegar',
  159. navigateUpKeyAriaLabel: 'flecha arriba',
  160. navigateDownKeyAriaLabel: 'flecha abajo',
  161. closeText: 'para cerrar',
  162. closeKeyAriaLabel: 'escape',
  163. },
  164. },
  165. },
  166. },
  167. },
  168. },
  169. },
  170. },
  171. }