-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de api/component-injections.md
et api/router-instance.md
#5
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
Conversation
…instance).md' into api/(component-injection|router-instance).md
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.
Voici mes retours.
docs/en/api/router-instance.md
Outdated
@@ -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 |
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'instance du routeur
docs/en/api/router-instance.md
Outdated
|
||
#### 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). |
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.
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.
docs/en/api/router-instance.md
Outdated
|
||
- **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. |
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.
Retourne un tableau de composants
docs/en/api/router-instance.md
Outdated
- **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 : |
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.
un objet avec les propriétés suivantes
objet et tableau son parfaitement francisé dans le domaine du JavaScript
docs/en/api/router-instance.md
Outdated
@@ -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. |
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.
tableau utilisant
docs/en/api/router-instance.md
Outdated
- **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. |
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.
hooks d'entrées
docs/en/api/router-instance.md
Outdated
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 : |
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.
vers une route
Modifications apportées ! |
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.
Ok pour moi !
Conflit à résoudre à priori :D |
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 |
No description provided.