-
Notifications
You must be signed in to change notification settings - Fork 103
Traduction transitions.md
#47
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 transitions.md
#47
Conversation
Dis nous quand tu es prèt pour la review ;) |
Transition a été mis à jour « Toggle » devient « Toggle Render », n'oubli pas de faire le changement. |
Actuellement Il faut mettre à jour ta version de travail @forresst vis à vis de la master. Tu as besoin d'aide ? |
@forresst est tu parmis nous :) |
Oui "toujours vivant, rassurez-vous", mais très peu dispo en ce moment. Désolé, j'espère une fin de mois plus calme. |
Ça avance :) |
Oui, j'ai un peu plus de disponibilité, mais j'ai encore au moins 50% à faire. Désolé ! |
J'ai encore une relecture générale à faire et vous pourrez commencer la relecture. Je vous tiens au courant. |
Traduction terminée, merci pour vos relectures |
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 énormément de fautes. Belle review. J'ai laissé mes commentaires. Je te laisse traiter ce qui fait du sens et me faire des retours sur ce qui t'ennui.
Bien joué !
src/v2/guide/transitions.md
Outdated
@@ -1486,7 +1486,7 @@ Vue.component('my-special-transition', { | |||
render: function (createElement, context) { | |||
var data = { | |||
props: { | |||
name: 'very-special-transition', | |||
name: 'very-special-transition' |
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.
remettre la virgule :)
src/v2/guide/transitions.md
Outdated
|
||
Vue provides a `transition` wrapper component, allowing you to add entering/leaving transitions for any element or component in the following contexts: | ||
Vue fournit un composant conteneur `transition`, vous permettant d’ajouter des transitions entrantes/sortantes pour n’importe quel élément ou composant dans les contextes 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.
d'ajouter
(apostrophe simple)
n'importe
(apostrophe simple)
src/v2/guide/transitions.md
Outdated
|
||
2. `v-enter-active`: Active state for enter. Applied during the entire entering phase. Added before element is inserted, removed when transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition. | ||
2. `v-enter-active`: C'est l'état actif pour *enter*. Il est appliqué pendant toute la phase *enter*. Il est ajouté avant que l'élément soit inséré, il est supprimé lorsque la transition/animation est terminée. Cette classe peut être utilisée pour définir la durée, le retard et la courbe d’accélération pour la transition entrante (enter). |
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.
d'accélération
(apostrophe)
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.
enter fait le job, on peut retirer (enter)
src/v2/guide/transitions.md
Outdated
|
||
4. `v-leave`: Starting state for leave. Added immediately when a leaving transition is triggered, removed after one frame. | ||
4. `v-leave`: C'est l'état de départ pour *leave*. Il est ajouté dès qu'une transition sortante (leave) est déclenchée, il est supprimé une fois faite. |
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.
supprimé après une frame.
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.
leave fait le job, on peut retirer (leave)
src/v2/guide/transitions.md
Outdated
|
||
`v-enter-active` and `v-leave-active` give you the ability to specify different easing curves for enter/leave transitions, which you'll see an example of in the following section. | ||
`v-enter-active` et `v-leave-active` vous donne la possibilité de spécifier des courbes d’accélération pour les transitions enter/leave, nous allons les voir dans un exemple dans la section suivante. |
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.
transitions entrante/sortante
src/v2/guide/transitions.md
Outdated
|
||
<p class="tip">When toggling between elements that have **the same tag name**, you must tell Vue that they are distinct elements by giving them unique `key` attributes. Otherwise, Vue's compiler will only replace the content of the element for efficiency. Even when technically unnecessary though, **it's considered good practice to always key multiple items within a `<transition>` component.**</p> | ||
<p class="tip">Lors de la permutation entre des éléments qui ont **le même nom de balise**, vous devez indiquer à Vue qu’ils sont des éléments distincts en lui donnant des attributs `key` uniques. Sinon, le compilateur de Vue ne remplacera que le contenu de l'élément dans le but d'être efficace. Cependant, même si c'est techniquement inutile, **c'est considéré comme une bonne pratique de toujours avoir une clé pour chaque élément dans un composant `<transition>`.**</p> |
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'il
(apostrophe)
src/v2/guide/transitions.md
Outdated
</button> | ||
</transition> | ||
``` | ||
|
||
In these cases, you can also use the `key` attribute to transition between different states of the same element. Instead of using `v-if` and `v-else`, the above example could be rewritten as: | ||
Dans ces cas, vous pouvez aussi utiliser l'attribut `key` pour effectuer une transition entre différents états du même élément. Au lieu d’utiliser `v-if` et `v-else`, l’exemple ci-dessus pourrait être réécrit ainsi : |
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'exemple
(apostrophe)
src/v2/guide/transitions.md
Outdated
|
||
The `in-out` mode isn't used as often, but can sometimes be useful for a slightly different transition effect. Let's try combining it with the slide-fade transition we worked on earlier: | ||
Le mode `in-out` n’est pas utilisé aussi souvent, mais peut parfois être utile pour un effet de transition un peu différent. Essayons de le combiner avec la transition diapositive sur laquelle nous avons travaillé précédemment. |
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.
n'est
(apostrophe)
src/v2/guide/transitions.md
Outdated
@@ -1238,16 +1238,16 @@ new Vue({ | |||
</style> | |||
{% endraw %} | |||
|
|||
<p class="tip">One important note is that these FLIP transitions do not work with elements set to `display: inline`. As an alternative, you can use `display: inline-block` or place elements in a flex context.</p> | |||
<p class="tip">Un point important à noter, c'est que ces transitions FLIP ne fonctionnent pas si des éléments sont configurés avec `display: inline`. Comme alternative, vous pouvez utiliser `display: inline-block` ou placer des éléments dans un contexte flexible.</p> |
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 point important à noter est que
ou
Un point important est a noter : ces transitions FLIP
src/v2/guide/transitions.md
Outdated
@@ -1303,9 +1303,9 @@ new Vue({ | |||
</style> | |||
{% endraw %} | |||
|
|||
### Staggering List Transitions | |||
### Echelonnage des transitions de liste |
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.
Échelonnage
Petites modifs pour moi @forresst :) |
@haeresis Done |
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
src/v2/guide/transitions.md
Outdated
|
||
3. If no CSS transitions/animations are detected and no JavaScript hooks are provided, the DOM operations for insertion and/or removal will be executed immediately on next frame (Note: this is a browser animation frame, different from Vue's concept of `nextTick`). | ||
3. Si aucune transition/animation CSS n'est détectée et qu'aucun hook JavaScript n'est fourni, les opérations du DOM pour l'insertion et/ou la suppression seront exécutées immédiatement sur la frame suivante (Remarque : il s'agit d'une frame d'animation du navigateur, différente du concept de `nextTick`). |
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.
à la frame suivante
src/v2/guide/transitions.md
Outdated
|
||
`v-enter-active` and `v-leave-active` give you the ability to specify different easing curves for enter/leave transitions, which you'll see an example of in the following section. | ||
`v-enter-active` et `v-leave-active` vous donne la possibilité de spécifier des courbes d'accélération pour les transitions entrantes/sortantes, nous allons les voir dans un exemple dans la section suivante. |
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.
vous donnent
ce que nous verrons en exemple dans la section suivante.
src/v2/guide/transitions.md
Outdated
// the done callback is optional when | ||
// used in combination with CSS | ||
// la fonction de rappel done est facultative quand | ||
// c'est utilisé en combinaison avec du CSS |
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.
quand utilisée
src/v2/guide/transitions.md
Outdated
// the done callback is optional when | ||
// used in combination with CSS | ||
// la fonction de rappel done est facultative quand | ||
// c'est utilisé en combinaison avec du CSS |
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.
quand utilisée
src/v2/guide/transitions.md
Outdated
@@ -693,9 +693,9 @@ new Vue({ | |||
</style> | |||
{% endraw %} | |||
|
|||
As it's transitioning between the "on" button and the "off" button, both buttons are rendered - one transitioning out while the other transitions in. This is the default behavior of `<transition>` - entering and leaving happens simultaneously. | |||
Comme c'est une transition entre le bouton « on » et le bouton « off », les deux boutons sont rendus (La transition en fait apparaître un pendant qu'elle fait disparaître l'autre). Il s'agit du comportement par défaut de `<transition>` (l'entrée et la sortie se font simultanément). |
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 deux boutons sont rendus - l'un est en transition sortante pendant que l'autre est en transition entrante
src/v2/guide/transitions.md
Outdated
|
||
- `in-out`: New element transitions in first, then when complete, the current element transitions out. | ||
- `in-out`: Les transitions du nouvel élément se passent en premier, puis quand elles sont terminées, les transitions de l'élément actuel s'effectuent. |
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.
(note: transitions n'est ici pas le nom pluriel mais la conjugaison du verbe to transition, "transitionner" en français. C'est un néologisme mais on peut se débrouiller pour ne pas l'utiliser)
La transition entrante du nouvel élément s'effectue en premier, puis une fois terminée, déclenche la transition sortante de l'élément courant
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.
Merci j'avoue avoir eu du mal à traduire cette partie. Avec ton explication cela devient limpide.
src/v2/guide/transitions.md
Outdated
|
||
- `out-in`: Current element transitions out first, then when complete, the new element transitions in. | ||
- `out-in`: Les transitions de l'élément actuel se passent en premier, puis quand elles sont terminées, les transitions du nouvel élément s'effectuent. |
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.
La transition sortante de l'élément courant s'effectue en premier, puis une fois terminée, déclenche la transition entrante du nouvel élément
src/v2/guide/transitions.md
Outdated
|
||
```html | ||
<transition v-bind:name="transitionName"> | ||
<!-- ... --> | ||
</transition> | ||
``` | ||
|
||
This can be useful when you've defined CSS transitions/animations using Vue's transition class conventions and simply want to switch between them. | ||
Cela peut être utile quand vous avez défini des transitions/animations CSS à l'aide des conventions de classe de transition de Vue et que vous souhaitez simplement basculer entre elles. |
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 classes
src/v2/guide/transitions.md
Outdated
|
||
Really though, any transition attribute can be dynamically bound. And it's not just attributes. Since event hooks are just methods, they have access to any data in the context. That means depending on the state of your component, your JavaScript transitions can behave differently. | ||
Vraiment bien, tout attribut de transition peut être dynamiquement lié. Et ce ne sont pas seulement des attributs. Étant donné que les hooks d'événements ne sont que des méthodes, ils ont accès à toutes les données dans le contexte. Cela signifie que selon l'état de votre composant, le JavaScript de vos transitions peuvent se comporter différemment. |
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.
Really through =>En vérité / En réalité
Et il ne s'agit pas seulement des attributs
, vos transitions JavaScript peuvent
src/v2/guide/transitions.md
Outdated
@@ -1645,5 +1645,4 @@ new Vue({ | |||
</script> | |||
{% endraw %} | |||
|
|||
Finally, the ultimate way of creating dynamic transitions is through components that accept props to change the nature of the transition(s) to be used. It may sound cheesy, but the only limit really is your imagination. | |||
|
|||
Finalement, le meilleur moyen de créer des transitions dynamiques, c'est par le biais de composants qui acceptent des props pour changer la nature de la transition(s) à utiliser. Cela peut sembler ringard, mais la seule limite est votre imagination. |
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 ou des transitions à utiliser
cheesy => "mielleux" dans ce contexte ?
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.
Génial le « mielleux ». »
2 relectures OK, bon pour merge |
Cette page est en cours de traduction.