fr.ts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
  2. export const frConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  3. themeConfig: {
  4. editLink: {
  5. pattern: 'https://github.com/tresjs/tres/edit/main/packages/docs/:path',
  6. text: 'Suggérer un changement à cette page.',
  7. },
  8. sidebar: [
  9. {
  10. text: 'Guide',
  11. items: [
  12. // This shows `/guide/index.md` page.
  13. { text: 'Introduction', link: '/fr/guide/' },
  14. { text: 'Commencer', link: '/fr/guide/getting-started' },
  15. { text: 'Votre première scene', link: '/fr/guide/your-first-scene' },
  16. { text: 'Nuxt', link: '/fr/guide/nuxt' },
  17. { text: 'Résolution de problèmes', link: '/fr/guide/troubleshooting' },
  18. { text: 'Migration depuis la v1', link: '/fr/guide/migration-guide' },
  19. ],
  20. },
  21. {
  22. text: 'API',
  23. items: [
  24. { text: 'TresCanvas', link: '/fr/api/tres-canvas' },
  25. {
  26. text: 'Instances, arguments et props',
  27. link: '/fr/api/instances-arguments-and-props',
  28. },
  29. {
  30. text: 'Composables',
  31. link: '/fr/api/composables',
  32. },
  33. {
  34. text: 'Évenements',
  35. link: '/fr/api/events',
  36. },
  37. ],
  38. },
  39. {
  40. text: 'Avancé',
  41. items: [
  42. { text: 'Étendre', link: '/fr/advanced/extending' },
  43. { text: 'primitive', link: '/fr/advanced/primitive' },
  44. {
  45. text: 'Mise en garde',
  46. link: '/fr/advanced/caveats',
  47. },
  48. ],
  49. },
  50. {
  51. text: 'Debug',
  52. items: [
  53. { text: 'Outils de développement', link: '/fr/debug/devtools' },
  54. ],
  55. },
  56. {
  57. text: 'Cookbook',
  58. link: '/fr/cookbook/',
  59. collapsed: true,
  60. items: [
  61. { text: 'Controles des orbites', link: '/fr/cookbook/orbit-controls' },
  62. { text: 'Animations de base', link: '/fr/cookbook/basic-animations' },
  63. { text: 'Groupes', link: '/fr/cookbook/groups' },
  64. { text: 'Charger des textures', link: '/fr/cookbook/load-textures' },
  65. { text: 'Charger des modèles', link: '/fr/cookbook/load-models' },
  66. { text: 'Charger du texte', link: '/fr/cookbook/text-3d' },
  67. { text: 'Éclairages et ombres', link: '/fr/cookbook/lights-shadows' },
  68. { text: 'Shaders', link: '/fr/cookbook/shaders' },
  69. ],
  70. },
  71. {
  72. text: 'Directives',
  73. collapsed: true,
  74. items: [
  75. { text: 'v-log', link: '/fr/directives/v-log' },
  76. { text: 'v-light-helper', link: '/fr/directives/v-light-helper' },
  77. { text: 'v-always-look-at', link: '/fr/directives/v-always-look-at' },
  78. { text: 'v-distance-to', link: '/fr/directives/v-distance-to' },
  79. ],
  80. },
  81. {
  82. text: 'Ecosystème',
  83. items: [
  84. {
  85. text: 'Cientos 💛',
  86. link: 'https://cientos.tresjs.org/',
  87. },
  88. {
  89. text: 'Module Nuxt',
  90. link: 'https://github.com/Tresjs/nuxt',
  91. },
  92. {
  93. text: 'TresLeches 🍰',
  94. link: 'https://tresleches.tresjs.org/',
  95. },
  96. {
  97. text: 'Post-processing (Bientôt)',
  98. },
  99. ],
  100. },
  101. ],
  102. nav: [
  103. { text: 'Guide', link: '/fr/guide/' },
  104. { text: 'API', link: '/fr/api/tres-canvas' },
  105. /* { text: 'API', link: '/api/' },
  106. { text: 'Config', link: '/config/' }, */
  107. { text: 'Resources', items: [
  108. { text: 'Équipe', link: '/fr/team.md' },
  109. { text: 'Versions', link: 'https://github.com/Tresjs/tres/releases' },
  110. {
  111. text: 'Playground',
  112. link: 'https://playground.tresjs.org/',
  113. },
  114. {
  115. text: 'Github',
  116. link: 'https://github.com/Tresjs/tres/',
  117. },
  118. {
  119. text: 'Problèmes',
  120. link: 'https://github.com/Tresjs/tres/issues',
  121. },
  122. {
  123. text: 'Ecosystème',
  124. items: [
  125. {
  126. text: 'Cientos 💛',
  127. link: 'https://cientos.tresjs.org/',
  128. },
  129. {
  130. text: 'Module Nuxt',
  131. link: 'https://github.com/Tresjs/nuxt',
  132. },
  133. {
  134. text: 'TresLeches 🍰',
  135. link: 'https://tresleches.tresjs.org/',
  136. },
  137. ],
  138. },
  139. ] },
  140. ],
  141. search: {
  142. provider: 'local',
  143. options: {
  144. locales: {
  145. fr: {
  146. translations: {
  147. button: {
  148. buttonText: 'Chercher',
  149. buttonAriaLabel: 'Chercher',
  150. },
  151. modal: {
  152. displayDetails: 'Afficher la liste détaillée',
  153. resetButtonTitle: 'Réinitialiser la recherche',
  154. backButtonTitle: 'Fermer la recherche',
  155. noResultsText: 'Aucun résultat pour',
  156. footer: {
  157. selectText: 'Pour selectionner',
  158. selectKeyAriaLabel: 'entrer',
  159. navigateText: 'Pour naviguer',
  160. navigateUpKeyAriaLabel: 'Flèche du haut',
  161. navigateDownKeyAriaLabel: 'Flèche du bas',
  162. closeText: 'Pour fermer',
  163. closeKeyAriaLabel: 'quitter',
  164. },
  165. },
  166. },
  167. },
  168. },
  169. },
  170. },
  171. },
  172. }