-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de api/router-link.md
#9
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
Conversation
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.
Review pour celle là
docs/en/api/router-link.md
Outdated
|
||
- In HTML5 history mode, `router-link` will intercept the click event so that the browser doesn't try to reload the page. | ||
- Dans le mode historique HTML5, `router-link` interceptera l'événement du clic, comme ça le navigateur n'essaiera pas de rafraîchir la page. |
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.
évènement
les deux sont valide mais on garde la réforme de 1990 (ou 1991) je sais plus :D
docs/en/api/router-link.md
Outdated
|
||
Désigne la route cible du lien. Lorsqu'il est cliqué, la valeur de la prop `to` va être passé de manière interne à `router.push`, donc la valeur peut soit être une chaîne de caractères, ou alors un objet décrivant une localisation. |
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.
être passée
docs/en/api/router-link.md
Outdated
|
||
<!-- javascript expression using v-bind --> | ||
<router-link v-bind:to="'home'">Home</router-link> | ||
<!-- expression JavaScript en utilisant v-bind --> |
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.
v-bind
Je notifie l'original
docs/en/api/router-link.md
Outdated
|
||
<!-- Omitting v-bind is fine, just as binding any other prop --> | ||
<router-link :to="'home'">Home</router-link> | ||
<!-- Omettre v-bind est ok, tout comme autre prop --> |
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.
v-bind
avec tick
Je PR original
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.
une autre prop
docs/en/api/router-link.md
Outdated
|
||
<!-- with query, resulting in /register?plan=private --> | ||
<router-link :to="{ path: 'register', query: { plan: 'private' }}">Register</router-link> | ||
<!-- avec une requête, résulte en /register?plan=private --> |
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.
/register?plan=private
avec tick
Je PR
docs/en/api/router-link.md
Outdated
|
||
Sometimes we want `<router-link>` to render as another tag, e.g `<li>`. Then we can use `tag` prop to specify which tag to render to, and it will still listen to click events for navigation. | ||
Parfois, on veut que `<router-link>` soit rendu avec un tag différent, ex : `<li>`. On peut alors utiliser la prop `tag` pour modifier le tag qui sera rendu, et il écoutera toujours aux événements de clic pour la navigation |
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.
modifier la balise
sera rendue
et elle écoutera toujours les évènements de clic
docs/en/api/router-link.md
Outdated
|
||
One consequence of this is that `<router-link to="/">` will be active for every route! To force the link into "exact match mode", use the `exact` prop: | ||
Une conséquence de cela est que `<router-link to="/">` sera actif pour toutes les routes ! Pour forcer le lien dans un "mode correspondance exacte", utilisez la prop `exact`. |
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.
« mode correspondance exacte »
docs/en/api/router-link.md
Outdated
|
||
``` html | ||
<!-- this link will only be active at / --> | ||
<!-- ce lien sera uniquement actif à / --> |
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.
à /
PR original
docs/en/api/router-link.md
Outdated
|
||
Specify the event(s) that can trigger the link navigation. | ||
Spécifie les événement(s) que peuvent lancer la navigation de lien. |
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.
les évènement(s) qui peu(ven)t lancer
docs/en/api/router-link.md
Outdated
|
||
Sometimes we may want the active class to be applied to an outer element rather than the `<a>` tag itself, in that case, you can render that outer element using `<router-link>` and wrap the raw `<a>` tag inside: | ||
Parfois, on voudrait que la classe active soit appliquer à un élément extérieur au lieu de l'élément `<a>` lui-même, dans ce cas, vous pouvez faire le rendu de cet élément extérieur en utilisant `<router-link>` et en entourant le tag `<a>` : |
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.
soit appliquée
Corrigé ~ |
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.
Seconde relecture
docs/en/api/router-link.md
Outdated
|
||
`<router-link>` is the component for enabling user navigation in a router-enabled app. The target location is specified with the `to` prop. It renders as an `<a>` tag with correct `href` by default, but can be configured with the `tag` prop. In addition, the link automatically gets an active CSS class when the target route is active. | ||
`<router-link>` est le composant pour activer la navigation utilisateur dans une application où le routeur est activé. La localisation cible est spécifiée grâce à la prop `to`. Il est rendu en tant que tag `<a>` avec le `href` correct par défaut, mais peut être configuré grâce à la prop `tag`. De plus, le lien se vera attribuer une classe CSS active lorsque la route cible est active. |
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 tant que balise
docs/en/api/router-link.md
Outdated
|
||
`<router-link>` is preferred over hard-coded `<a href="...">` for the following reasons: | ||
`<router-link>` est préféré par rapport au `<a href="...">` hard-codé pour les raisons 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.
en dur pour les raisons
ou
en dur dans le code pour les raisons
Modification apportée, tu peux approuver si ça te va |
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.
Encore une relecture. Après ça pour moi c'est bon!
docs/en/api/router-link.md
Outdated
|
||
Sometimes we want `<router-link>` to render as another tag, e.g `<li>`. Then we can use `tag` prop to specify which tag to render to, and it will still listen to click events for navigation. | ||
Parfois, on veut que `<router-link>` soit rendu avec un tag différent, ex : `<li>`. On peut alors utiliser la prop `tag` pour modifier la balise qui sera rendue, et elle écoutera toujours les évènements de clic pour la navigation |
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.
une balise différente
Après ça pour moi c'est bon @Kocal ! |
Oups, j'avais mis de côté la traduction à cause d'un projet à l'IUT, c'est fixé ~ |
No description provided.