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

Traduction de api/component-injections.md et api/router-instance.md #5

Merged
merged 5 commits into from
May 29, 2017
Merged

Traduction de api/component-injections.md et api/router-instance.md #5

merged 5 commits into from
May 29, 2017

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented May 23, 2017

No description provided.

@Kocal Kocal requested a review from MachinisteWeb May 23, 2017 16:43
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.

Voici mes retours.

@@ -1,53 +1,53 @@
# Router Instance (En) <br><br> *Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vue-router).*
# L'Instance Routeur
Copy link
Member

Choose a reason for hiding this comment

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

L'instance du routeur


#### router.currentRoute

- type: `Route`

The current route represented as a [Route Object](route-object.md).
La route actuelle représentée en tant qu'un [Objet Route](route-object.md).
Copy link
Member

Choose a reason for hiding this comment

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

qu'un [objet route]

Si on affiche clairement que c'est un titre, on met une majuscule. Si on cache le titre dans la phrase, on en met pas. C'est arbitraire bien sur, mais c'est la règle que j'utilise dans mes traductions. Tu peux la suivre pour la consistance si tu le souhaites.


- **router.getMatchedComponents(location?)**

Returns an Array of the components (definition/constructor, not instances) matched by the provided location or the current route. This is mostly used during server-side rendering to perform data prefetching.

Retourne un `Array` des composants (définition/constructeur et non les instances) correspondant à la `location` passée en paramètre, ou alors de la route actuelle. Cette fonction est principalement utilisée pendant le rendu côté serveur afin d'effectuer une pré-récupération des données.
Copy link
Member

Choose a reason for hiding this comment

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

Retourne un tableau de composants

- **router.resolve(location, current?, append?)**

> 2.1.0+

Reverse URL resolving. Given location in form same as used in `<router-link/>`, returns object with the following resolved properties:

Inverse la résolution d'URL. La `location` doit avoir la même forme qu'utilisée dans `<router-link>`, retourne un `Object` avec les propriétés suivantes :
Copy link
Member

Choose a reason for hiding this comment

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

un objet avec les propriétés suivantes

objet et tableau son parfaitement francisé dans le domaine du JavaScript

@@ -60,26 +60,26 @@

> 2.2.0+

Dynamically add more routes to the router. The argument must be an Array using the same route config format with the `routes` constructor option.

Permet d'ajouter dynamiquement des routes au routeur. L'argument doit être un `Array` utilisant le même format de configuration que l'option `routes` du constructeur.
Copy link
Member

Choose a reason for hiding this comment

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

tableau utilisant

- **router.onReady(callback, [errorCallback])**

> 2.2.0+

This method queues a callback to be called when the router has completed the initial navigation, which means it has resolved all async enter hooks and async components that are associated with the initial route.
Cette méthode met en file d'attente une fonction de rappel qui sera appelée lorsque le routeur aura complété la navigation initiale, ce qui signifie qu'il a résolu tous les hooks d'entrée asynchrones et composants asynchrones qui sont associés à la route initiale.
Copy link
Member

Choose a reason for hiding this comment

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

hooks d'entrées

Register a callback which will be called when an error is caught during a route navigation. Note for an error to be called, it must be one of the following scenarios:

- The error is thrown synchronously inside a route guard function;
Enregistre une fonction de rappel qui sera appelée lorsqu'une erreur sera capturée pendant la navigation à une route. Notez que pour qu'une erreur soit appelée, cela doit correspondre à l'un des scénarios suivants :
Copy link
Member

Choose a reason for hiding this comment

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

vers une route

@Kocal
Copy link
Member Author

Kocal commented May 27, 2017

Modifications apportées !

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.

Ok pour moi !

@MachinisteWeb
Copy link
Member

Conflit à résoudre à priori :D

@MachinisteWeb MachinisteWeb merged commit 1590bfb into vuejs-fr:working May 29, 2017
@Kocal Kocal deleted the api/(component-injection|router-instance).md branch May 29, 2017 08:48
@Kocal
Copy link
Member Author

Kocal commented May 29, 2017

Oui c'est parce que j'étais parti de la branche working pour chaque PR que j'ai faite, donc forcément, au bout d'un moment ça commençait à être galère dans le SUMMARY.md ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants