-
Notifications
You must be signed in to change notification settings - Fork 103
Traduction de migration-vue-router.md
#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traduction de migration-vue-router.md
#97
Conversation
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
migration-vue-router
migration-vue-router.md
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai eu le temps de review jusqu'à « Options de Route », j'ai trouvé quelques petites coquilles, j'essayerai de continuer ce soir
src/v2/guide/migration-vue-router.md
Outdated
|
||
If you need to programmatically generate routes when starting up your app, you can do so by dynamically pushing definitions to a routes array. For example: | ||
Si vous avez besoin programmatiquement de générer les routes au démarrage de votre application, vous pouvez le faire dynamiquement en augmentant les définitions de route dans votre tableau. Par exemple : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je trouve le terme augmenter les définitions
un peu étrange... que penses-tu de enregistrer les définitions
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en insérant les définitions dans un tableau de routes ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai utiliser le terme « ajoutant »
src/v2/guide/migration-vue-router.md
Outdated
|
||
This is now an [option on the definition for the route](http://router.vuejs.org/en/essentials/redirect-and-alias.html) you'd like to alias to. So for example, you will update: | ||
C'est m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mais encore ? 😛
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quelques erreurs et remarques. Mais c'est comme d'habitude du bon boulot.
src/v2/guide/migration-vue-router.md
Outdated
|
||
<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p><p>There is no longer a special API to initialize an app with Vue Router. That means instead of:</p> | ||
Il n'y a plus d'API dédiée pour initialiser Vue Router. Cela signifie qu'à la place d'utiliser : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cela signifie qu'à la place d'utiliser : => Cela signifie qu'au lieu d'utiliser :
cela me parait plus cohérent pour le lier à la phrase suivante ("Vous avez juste à passer la propriété
router
à l'instance de Vue :")
src/v2/guide/migration-vue-router.md
Outdated
</div> | ||
{% endraw %} | ||
|
||
## Route Definitions | ||
## Définition des routes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Définition de route
pour être en cohérence avec l'original
src/v2/guide/migration-vue-router.md
Outdated
|
||
``` js | ||
// Normal base routes | ||
// Base de routes normale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normales
c'est les routes qui sont normales
src/v2/guide/migration-vue-router.md
Outdated
|
||
This is now an [option on the definition for the route](http://router.vuejs.org/en/essentials/redirect-and-alias.html) you'd like to alias to. So for example, you will update: | ||
C'est m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cette ligne (et la suivante sont à supprimer).
src/v2/guide/migration-vue-router.md
Outdated
This is now an [option on the definition for the route](http://router.vuejs.org/en/essentials/redirect-and-alias.html) you'd like to alias to. So for example, you will update: | ||
C'est m | ||
|
||
C'est maintenant [une option des définitions de route](https://router.vuejs.org/fr/essentials/redirect-and-alias.html) que vous devrez mettre sous alias. Ainsi par exemple, vous devez mettre à jour : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ainsi par exemple, vous devez mettre à jour : => Ainsi par exemple, vous devez remplacer :
plus cohérent avec la phrase suivante ("par une définition comme ci-dessous dans votre configuration de
routes
:")
src/v2/guide/migration-vue-router.md
Outdated
### [] Syntax for Arrays in Queries <sup>removed</sup> | ||
### Syntaxe `[]` pour les tableaux dans les QueryString <sup>retirée</sup> | ||
|
||
Quand vous passez des tableaux à des paramètres de QueryString la syntaxe `/foo?users[]=Tom&users[]=Jerry` ne fonctionne plus. À la place, la nouvelle syntaxe sera `/foo?users=Tom&users=Jerry`. En interne `$route.query.users` sera toujours un tableau, mais s'il n'y a qu'un seul paramètre dans la query `/foo?users=Tom`, quand vous accéderez à cette route, il n'y aura aucun moyen pour le routeur de savoir si nous souhaitons que `users` soit un tableau. À cause de cela, il faut ajouter une propriété calculée et remplacer toutes les références de `$route.query.users` par cela : | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si on veut avoir le même nombre de ligne que dans le fichier en anglais, il faut supprimer cette ligne
src/v2/guide/migration-vue-router.md
Outdated
</div> | ||
{% endraw %} | ||
|
||
## Programmatic Navigation | ||
## Navigation programmatique |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Navigation par programmation
avis personnel à rediscuter si besoin
src/v2/guide/migration-vue-router.md
Outdated
|
||
For consistency with the [HTML5 History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API), `router.go` is now only used for [back/forward navigation](https://router.vuejs.org/en/essentials/navigation.html#routergon), while [`router.push`](http://router.vuejs.org/en/essentials/navigation.html#routerpushlocation) is used to navigate to a specific page. | ||
Pour plus de consistance avec l'[API HTML5 History](https://developer.mozilla.org/fr-FR/docs/Web/API/History_API) `router.go` est maintenant utilisé pour [la navigation en arrière où en avant](https://router.vuejs.org/fr/essentials/navigation.html#routergon) alors que [`router.push`](https://router.vuejs.org/fr/essentials/navigation.html#routerpushlocation) est utilisé pour naviguer vers une page spécifique. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en arrière ou en avant
enlever l'accent sur le u
src/v2/guide/migration-vue-router.md
Outdated
|
||
For consistency with the [HTML5 History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API), `router.go` is now only used for [back/forward navigation](https://router.vuejs.org/en/essentials/navigation.html#routergon), while [`router.push`](https://router.vuejs.org/en/essentials/navigation.html#routerpushlocation) is used to navigate to a specific page. | ||
Pour plus de consistance avec l'[API HTML5 History](https://developer.mozilla.org/fr-FR/docs/Web/API/History_API) `router.go` est maintenant utilisé pour [la navigation en arrière où en avant](https://router.vuejs.org/fr/essentials/navigation.html#routergon) alors que [`router.push`](https://router.vuejs.org/fr/essentials/navigation.html#routerpushlocation) est utilisé pour naviguer vers une page spécifique. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
la navigation en arrière ou en avant
enlever l'accent sur le u
src/v2/guide/migration-vue-router.md
Outdated
|
||
``` js | ||
// Normal base routes | ||
// Base de routes normale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normales
c'est les routes qui sont normales
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai remplacé « normales » par « statiques » par opposition à la suite.
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
La dernière trad !