Skip to content
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

API: Create local vue.md #11

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/en/api/createLocalVue.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# createLocalVue()

- **Returns:**
- **Retourne :**
- `{Component}`

- **Usage:**
- **Utilisation :**

`createLocalVue` returns a Vue class for you to add components, mixins and install plugins without polluting the global Vue class.
`createLocalVue` retourne un constructeur de Vue pour ajouter des composants, des mixins et installer des plugins sans polluer le contructeur global Vue.

Choose a reason for hiding this comment

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

Pourquoi tu as traduit "class" en "constructeur" ?
Pour moi, la traduction devrait être :

createLocalVue retourne une classe de Vue pour ajouter des composants, des mixins et installer des plugins sans polluer la classe globale de Vue.

Copy link
Author

Choose a reason for hiding this comment

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

Tu as raison, je change ça rapidement :)


Use it with `options.localVue`
Utilisez la avec `options.localVue`

```js
import { createLocalVue, shallow } from 'vue-test-utils'
Expand All @@ -25,4 +25,4 @@ const freshWrapper = shallow(Foo)
expect(freshWrapper.vm.foo).toBe(false)
```

- **See also:** [Common Tips](../guides/common-tips.md#applying-global-plugins-and-mixins)
- **Voir aussi :** [Astuces](../guides/common-tips.md#applying-global-plugins-and-mixins)