-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@@ -12,7 +12,7 @@ const myPlugin = store => { | |||
} |
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.
À traduire
docs/en/plugins.md
Outdated
@@ -21,11 +21,11 @@ const store = new Vuex.Store({ | |||
}) | |||
``` | |||
|
|||
### Committing Mutations Inside Plugins | |||
### Commiter des mutations dans des plugins |
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.
Acter
docs/en/plugins.md
Outdated
|
||
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 — tout comme vos composants, ils peuvent simplement déclencher des changements en committant des mutations. |
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.
l'état. Tout
en actant des
docs/en/plugins.md
Outdated
|
||
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) : |
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.
En actant des
une websocket
docs/en/plugins.md
Outdated
@@ -52,9 +52,9 @@ const store = new Vuex.Store({ | |||
}) | |||
``` | |||
|
|||
### Taking State Snapshots | |||
### Prendre des instantanés du state |
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.
de l'état
docs/en/plugins.md
Outdated
|
||
### Built-in Logger Plugin | ||
### Plugin logger intégré |
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.
Plugin de logs intégré
docs/en/plugins.md
Outdated
|
||
Vuex comes with a logger plugin for common debugging usage: | ||
Vuex fournit un plugin de logger à des fins de debugging : |
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.
plugin de logs
débogage
@@ -120,6 +120,6 @@ const logger = createLogger({ | |||
}) |
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.
À traduire
docs/en/plugins.md
Outdated
@@ -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. |
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.
Le fichier de logs
docs/en/plugins.md
Outdated
|
||
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. |
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.
plugin de logs
de l'état
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.
Pas grand chose à corriger dans la traduction
docs/en/plugins.md
Outdated
|
||
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 : |
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.
recevoir
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.
(me suis encore trompé)
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
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>
Celui là n'a pas de nouvelle lignes