-
Notifications
You must be signed in to change notification settings - Fork 2
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
Guide: using-with-vue-router.md #3
Conversation
@@ -1,10 +1,10 @@ | |||
# Using with Vue Router | |||
# Utiliser avec Vue Router |
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.
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. |
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.
on peut utiliser une localVue, et installer Vue Router dessus
|
||
### Using stubs | ||
### Utiliser stubs |
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.
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 ? * |
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.
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 ^^
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.
Merci pour la review :)
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 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. |
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.
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. |
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.
Vue Router
@@ -44,13 +44,13 @@ shallow(Component, { | |||
}) | |||
``` | |||
|
|||
## Mocking `$route` and `$router` | |||
## Simuler `$route` and `$router` |
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.
et
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.