Skip to content

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

Merged
merged 9 commits into from
Sep 15, 2017
Merged

Traduction de migration-vue-router.md #97

merged 9 commits into from
Sep 15, 2017

Conversation

MachinisteWeb
Copy link
Member

@MachinisteWeb MachinisteWeb commented Sep 9, 2017

La dernière trad !

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb MachinisteWeb self-assigned this Sep 9, 2017
@MachinisteWeb MachinisteWeb changed the title Traduction de migration-vue-router Traduction de migration-vue-router.md Sep 9, 2017
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>
Copy link
Member

@Kocal Kocal left a 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


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 :
Copy link
Member

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 ?

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 ?

Copy link
Member Author

@MachinisteWeb MachinisteWeb Sep 12, 2017

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 »


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
Copy link
Member

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>
Copy link

@forresst forresst left a 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.


<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 :

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 :")

</div>
{% endraw %}

## Route Definitions
## Définition des routes

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


``` js
// Normal base routes
// Base de routes normale

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


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

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).

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 :

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 :")

### [] 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 :

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

</div>
{% endraw %}

## Programmatic Navigation
## Navigation programmatique

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


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.

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


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.

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


``` js
// Normal base routes
// Base de routes normale

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

Copy link
Member Author

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>
@MachinisteWeb
Copy link
Member Author

Merci @forresst et @Kocal ! J'ai pris en compte vos remarques ! Ça devient bon :)

@MachinisteWeb MachinisteWeb merged commit bd5582a into vuejs-fr:master Sep 15, 2017
@MachinisteWeb MachinisteWeb deleted the migration-vue-router branch September 15, 2017 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants