Skip to content

Guide: using-with-vue-router.md #3

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 3 commits into from
Oct 23, 2017
Merged

Guide: using-with-vue-router.md #3

merged 3 commits into from
Oct 23, 2017

Conversation

Yaty
Copy link

@Yaty Yaty commented Oct 14, 2017

Traduction du fichier using-with-vue-router.md.
Je n'ai fait qu'une seule relecture, ça risque d'être un peu brut et pas forcement trop agréable à lire. A voir :)
J'ai un doute à la toute dernière phrase.

@@ -1,10 +1,10 @@
# Using with Vue Router
# Utiliser avec Vue Router
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utilisation avec


To avoid this, we can create a localVue, and install Vue Router on that.
Pour éviter cela, on va utiliser localVue et installer Vue Router avec.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on peut utiliser une localVue, et installer Vue Router dessus


### Using stubs
### Utiliser stubs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utiliser des stubs


To avoid this, never install Vue Router when you're running tests.
Pour éviter cela, n'installez jamais Vue Router quand vous lancez vos tests. * TODO : est-ce que c'est vraiment le message à faire passer ? *
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour éviter cela, n'installez jamais Vue Router directement sur Vue mais sur localVue, lorsque vous lancez vos tests.

J'ai pas la science infuse, mais je trouve que cette phrase a déjà beaucoup + de sens que la phrase originale ^^

Copy link
Author

@Yaty Yaty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci pour la review :)

Copy link
Member

@MachinisteWeb MachinisteWeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quelques remarques. Bonne traduction comme d'hab !


To avoid this, we can create a localVue, and install Vue Router on that.
Pour éviter cela, on peut utiliser une localVue, et installer Vue Router dessus.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localVue


When we run tests, we need to make these vue-router components available to the component we're mounting. There are two methods to do this.
On doit donc rendre ces composants vue-router disponibles au composant que nous testons. Il y a deux méthodes pour cela.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vue Router

@@ -44,13 +44,13 @@ shallow(Component, {
})
```

## Mocking `$route` and `$router`
## Simuler `$route` and `$router`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

et

@MachinisteWeb MachinisteWeb merged commit 5ba7491 into vuejs-fr:working Oct 23, 2017
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