Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Traduction de plugins.md #14

Merged
merged 3 commits into from
May 23, 2017
Merged

Traduction de plugins.md #14

merged 3 commits into from
May 23, 2017

Conversation

MachinisteWeb
Copy link
Member

Celui là n'a pas de nouvelle lignes

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb MachinisteWeb self-assigned this May 22, 2017
@MachinisteWeb MachinisteWeb requested review from darenju and Kocal May 22, 2017 14:51
@MachinisteWeb MachinisteWeb changed the title Review de plugins.md Traduction de plugins.md May 22, 2017
@@ -12,7 +12,7 @@ const myPlugin = store => {
}
Copy link
Member Author

Choose a reason for hiding this comment

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

À traduire

@@ -21,11 +21,11 @@ const store = new Vuex.Store({
})
```

### Committing Mutations Inside Plugins
### Commiter des mutations dans des plugins
Copy link
Member Author

Choose a reason for hiding this comment

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

Acter


Plugins are not allowed to directly mutate state - similar to your components, they can only trigger changes by committing mutations.
Les plugins ne sont pas autorisés à muter directement le state &mdash; tout comme vos composants, ils peuvent simplement déclencher des changements en committant des mutations.
Copy link
Member Author

Choose a reason for hiding this comment

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

l'état. Tout

en actant des


By committing mutations, a plugin can be used to sync a data source to the store. For example, to sync a websocket data source to the store (this is just a contrived example, in reality the `createPlugin` function can take some additional options for more complex tasks):
En commitant des mutations, un plugin peut être utilisé pour synchroniser la source de données avec le store. Par exemple, pour synchroniser la source de données d'un websocket vers le store (c'est juste un exemple artificiel, en réalité la fonction `createPlugin` peut prendre des options additionnelles pour des tâches plus complexes) :
Copy link
Member Author

Choose a reason for hiding this comment

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

En actant des

une websocket

@@ -52,9 +52,9 @@ const store = new Vuex.Store({
})
```

### Taking State Snapshots
### Prendre des instantanés du state
Copy link
Member Author

Choose a reason for hiding this comment

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

de l'état


### Built-in Logger Plugin
### Plugin logger intégré
Copy link
Member Author

Choose a reason for hiding this comment

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

Plugin de logs intégré


Vuex comes with a logger plugin for common debugging usage:
Vuex fournit un plugin de logger à des fins de debugging :
Copy link
Member Author

Choose a reason for hiding this comment

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

plugin de logs

débogage

@@ -120,6 +120,6 @@ const logger = createLogger({
})
Copy link
Member Author

Choose a reason for hiding this comment

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

À traduire

@@ -120,6 +120,6 @@ const logger = createLogger({
})
```

The logger file can also be included directly via a `<script>` tag, and will expose the `createVuexLogger` function globally.
Le fichier logger peut aussi être inclus directement via une balise `script`, et exposera la fonction `createVuexLogger` globalement.
Copy link
Member Author

Choose a reason for hiding this comment

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

Le fichier de logs


Note the logger plugin takes state snapshots, so use it only during development.
Notez que le plugin logger peut prendre des instantanés du state, ne l'utilisez donc que durant le développement.
Copy link
Member Author

Choose a reason for hiding this comment

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

plugin de logs

de l'état

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.

Pas grand chose à corriger dans la traduction


Sometimes a plugin may want to receive "snapshots" of the state, and also compare the post-mutation state with pre-mutation state. To achieve that, you will need to perform a deep-copy on the state object:
Parfois un plugin peut vouloir reçevoir des "instantanés" du state, et également comparer le state post-mutation avec le state pre-mutation. Pour faire ceci, vous aurez besoin d'effectuer une deep-copy sur l'objet du state :
Copy link
Member

Choose a reason for hiding this comment

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

recevoir

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.

(me suis encore trompé)

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb
Copy link
Member Author

J'ai traduis quelques commentaires (je te laisse jetter un oeil). Dès que c'est bon pour toi je merge.

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb MachinisteWeb merged commit 8902f83 into working May 23, 2017
@MachinisteWeb MachinisteWeb deleted the plugins branch May 23, 2017 09:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants